Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    create 3 new users, each with full access to a shared direct

    i want to create 3 new users, each with full access to a shared directory as well as their own home directory. Only these 3 users should have access to the shared directory. how do i do this . i have very limited knowlege of linux.

  2. #2
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    The easiest way is to first create a group for the new users. You can do that so you don't need to set the directory to be owned by all three users. You add a group with the command:
    groupadd [groupname]
    Then you will have to crete three new users. I recommend if you don't know how to add users you can read about it in 'man useradd', remember to use the "-g" and assign it to the name of the group you created.

    Then you will have to set up the directory. To create a directory use the command:
    mkdir [dirname]
    To set the owner-group of the dir:
    chown :[groupname] [dirname]
    You might also need to set group write-permissions to the folder. Use this command to set read-write permissions for the members in the group:
    chmod g=rw [dirname]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts