0

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!

0

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
0

Do the following:

  1. Add group:

    sudo addgroup staff
    
  2. Add user to group:

    sudo adduser mike staff
    
  3. Give group access to folder:

    sudo chgrp -R staff /home/Clients
    
  4. Set permissions on folder:

    sudo chmod -R 775 /home/Clients
    
  5. Make all folders subsequently created inside /home/Clients to be owned by group staff:

    sudo setfacl -dR -m g:staff:rwx /home/Clients
    
  • When i do #5 it says setfacl: Option -m: Invalid Argument near character 1 – Austin Prado Oct 25 '18 at 20:52
  • Sorry updated the answer @AustinPrado – George Udosen Oct 26 '18 at 6:52
  • Just realized for step 2 the command does not work. adduser -g name staff I ran this command but realized it says adduser: user 'name' already exists – Austin Prado Oct 26 '18 at 18:55
  • That option -g should not be there, please see man adduser! – George Udosen Oct 26 '18 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.