Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sys-admin question (users/groups etc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
appleshampoo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 116

PostPosted: Mon Jan 09, 2006 3:20 pm    Post subject: Sys-admin question (users/groups etc) Reply with quote

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
View user's profile Send private message
n3mo
l33t
l33t


Joined: 28 Mar 2004
Posts: 657
Location: In a Cruel World

PostPosted: Mon Jan 09, 2006 3:27 pm    Post subject: Reply with quote

Make www the primary group for each user.

;)
_________________
Google, really.
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Mon Jan 09, 2006 3:28 pm    Post subject: Reply with quote

The users can do a
Quote:
newgrp www
before working on the files.

Also make sure the umask is set so the group has the appropriate permissions.
Back to top
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Mon Jan 09, 2006 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Mon Jan 09, 2006 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
anoland
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 86

PostPosted: Fri Apr 07, 2006 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum