I
I
Ivan2019-10-08 13:43:20
linux
Ivan, 2019-10-08 13:43:20

How to allow file writing and reading for all nested files and folders?

Hello! Please help me. There is a certain group of storage users. There is a folder on the server home / admin /
You need to give the group permission to do everything in this folder. Also apply to all subfolders and all files that will appear there. How to do it?
I've tried sudo chgrp storage /home/admin but that's only assigned to a folder.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
artsiom1976, 2019-10-08
@artsiom1976

-R
for example
sudo chown storage -R /home/admin

C
CityCat4, 2019-10-08
@CityCat4

man chmod

M
morfair, 2019-10-08
@morfair

chmod -R +wr .

N
noute, 2019-10-09
@noute

several options to choose from.
1. chmod 775 -R /home/admin/*
2. chown username:groupname -R /home/admin/*
3. And getfacl and setfacl related stuff. googled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question