View previous topic :: View next topic |
Author |
Message |
appleshampoo Tux's lil' helper
Joined: 26 Sep 2004 Posts: 116
|
Posted: Mon Jan 09, 2006 3:20 pm Post subject: Sys-admin question (users/groups etc) |
|
|
I'm setting up a Gentoo box for a class project to work on and just installed apache2. I want all of the group to have read/write access to the www folders, so I changed the group ownership to group "www" for everything below /var/www/localhost and added all of the users to the "www" group.
But the issue is that when a user creates a file in these places, it defaults to their username and the "users" group for ownership, so that other members can't access it without manually changing stuff everytime.
I'm hoping this is a well-know question, I just haven't run across the situation myself. |
|
Back to top |
|
|
n3mo l33t
Joined: 28 Mar 2004 Posts: 657 Location: In a Cruel World
|
Posted: Mon Jan 09, 2006 3:27 pm Post subject: |
|
|
Make www the primary group for each user.
_________________ Google, really. |
|
Back to top |
|
|
fvant Guru
Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Mon Jan 09, 2006 3:28 pm Post subject: |
|
|
The users can do a before working on the files.
Also make sure the umask is set so the group has the appropriate permissions. |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Mon Jan 09, 2006 7:02 pm Post subject: |
|
|
could also possibly do some digging about the set-gid bit if i'm right...that way all the files created below /var/www/localhost would be created with the permissions of the group the parent directory belongs to...i hope i didn't misunderstand anything when i was reading about "chmod"... |
|
Back to top |
|
|
fvant Guru
Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Mon Jan 09, 2006 9:53 pm Post subject: |
|
|
dpetka2001 wrote: | could also possibly do some digging about the set-gid bit if i'm right...that way all the files created below /var/www/localhost would be created with the permissions of the group the parent directory belongs to...i hope i didn't misunderstand anything when i was reading about "chmod"... |
That's correct. |
|
Back to top |
|
|
anoland Tux's lil' helper
Joined: 27 May 2003 Posts: 86
|
Posted: Fri Apr 07, 2006 5:25 pm Post subject: |
|
|
fvant wrote: | Also make sure the umask is set so the group has the appropriate permissions. |
What would be a good umask for this situation?
Thanks. |
|
Back to top |
|
|
|