LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Allowing Group and Owner for 3 users (http://www.linuxquestions.org/questions/linux-server-73/allowing-group-and-owner-for-3-users-720254/)

acctman 04-19-2009 05:15 PM

Allowing Group and Owner for 3 users
 
i have 3 sites/users that all need to be able to access each other with complete read/write/exec access

Site1 Site2 and Site3

what's the best way to do this without screwing up all the premissions and access to my currently active sites. I need advice from someone who is a pro at this and not just guessing at what premissions to set.

I've already had to restore twice after receiving bad advice on another forum.

jstephens84 04-20-2009 10:13 AM

When you say sites, what are you refering to? Do you mean physical sites, or do you mean websites? If you mean websites, I would create a group and all the users to that group. The I would only change the group owner for the folders that contain those sites. Then I would change the permissions to something like 775 which would be rwxrwxr-x.

Now if you have physical sites then I may need some additional information.

acctman 04-20-2009 11:04 AM

Quote:

Originally Posted by jstephens84 (Post 3515071)
When you say sites, what are you refering to? Do you mean physical sites, or do you mean websites? If you mean websites, I would create a group and all the users to that group. The I would only change the group owner for the folders that contain those sites. Then I would change the permissions to something like 775 which would be rwxrwxr-x.

Now if you have physical sites then I may need some additional information.

i'm referring to the websites permissions. so like you said, Create a master group for all 3 sites (i.e group RateGrp) then for each site change the group starting at the site root (i.e. /home/site1) what command do i use for changing the files?


commands:
Step 1: groupadd rategrp
Step 2: chgrp /home/site1/ (do i recursively -r or just the main folder)
what's next?

jstephens84 04-20-2009 11:34 AM

yes I would do that recursively for the site folders only. But I am going to start as if you just created the group.

So you now have a group called rategrp - edit the /etc/group folder and add the users to that group that will require the write permissions. Then change the group-owner for the three sites. Once you have done that go through the folders and assign the permissions that they need. If you want the whole site writable then just do the following
Code:

chgrp -r rategrp /home/<enter site name>
chmod 775 -r /home/<enter site name>

that should allow three users write access to the sites. You will have to do this for the other two sites also.


All times are GMT -5. The time now is 12:57 PM.