LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 04-19-2009, 04:15 PM   #1
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
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.
 
Old 04-20-2009, 09:13 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
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.
 
Old 04-20-2009, 10:04 AM   #3
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
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?
 
Old 04-20-2009, 10:34 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken files/owner/group. kmoffat Debian 3 11-27-2006 07:18 PM
Only allowing users in a single group to ssh from internet eggi Linux - Security 4 12-19-2005 11:06 AM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 07:13 AM
group owner etc MI3GTO Mandriva 3 02-27-2005 08:26 PM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 10:13 AM


All times are GMT -5. The time now is 04:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration