Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bad idea to add users to the apache group?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Namor
n00b
n00b


Joined: 14 Jun 2002
Posts: 43
Location: Madison, WI US

PostPosted: Fri Jan 17, 2003 4:45 pm    Post subject: Bad idea to add users to the apache group? Reply with quote

We're running into an issue in my office with this. One of our guys has some PHP scripts that need to write to a text file. So that file needs to be in the apache group (or world writeable, which we obviously do not want). But we also need another user to be able to access and write to the file via her account. It seems the easiest way to do this would be to make apache own the file and add the usrs to the apache group.

Is this a bad idea?

Thanks for you opinions.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Fri Jan 17, 2003 5:08 pm    Post subject: Reply with quote

I thing by default apache will write files with apache:users ownership, so the file would already be owned by the users group. Just make the file group writeable and you should be OK.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Jan 17, 2003 9:17 pm    Post subject: Reply with quote

If it doesn't, I would recommend going the other way around: putting the apache user in a group (new, if necessary), and adding both apache and the other user to this group. You can make the enclosing directory owned by the group and setgid, in order to force files created under it to be owned by said group, if that helps.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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