I want to basically create a group called Staff. I want staff to be able to access the folder /home/Clients and all of the subdirectories and files inside the Clients folder.
How would I go about creating the group, and how would I create the users to be able to download and access all these files. Any help would be greatly appreciated!
2 Answers
Do the following:
Add group:
sudo addgroup staffAdd user to group:
sudo adduser mike staffGive group access to folder:
sudo chgrp -R staff /home/ClientsSet permissions on folder:
sudo chmod -R 775 /home/ClientsMake all folders subsequently created inside
/home/Clientsto be owned bygroupstaff:sudo setfacl -dR -m g:staff:rwx /home/Clients
I named group of downloaders "dlers" in example. Also change user "joe" enter that group.
sudo groupadd dlers
sudo chgrp dlers /home/Clients
sudo adduser joe dlers
sudo chmod 770 /home/Clients # users not in group dlers cannot vi