Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running server as user "a" and accessing files as
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
MaxDamage
l33t
l33t


Joined: 03 Jan 2004
Posts: 650
Location: Oviedo, Spain

PostPosted: Wed Jan 28, 2004 3:11 pm    Post subject: Running server as user "a" and accessing files as Reply with quote

Hi. I have a question about how configure servers such as apache, mldonkey, etc.

I am trying to run servers as an specific user ("apache", "p2p", etc...) but as part of group "users", so files created by them can be accesible by all the users in group "users". Then, logged as "marcos" that is in group "users" I could edit the html files apache serves and there wouldn't be problems with permissions; also files downloaded with mldonley would have user "p2p" but group "users" so i could delete and rename them without problems, etc...

Code:
apache runs as: uid "apache" group "users"
mldonkey runs as: uid "p2p" group "users"

marcos has: uid "marcos" gui "users"

=> marcos can work with files created by/for apache, mldonkey...


All this is ok but the problem is the user p2p (i.e.) has his umask set to 022 so he can write into the files but not the other users in group "users".

My question is: how can I change the default umask from 022 to 002 for user "p2p" by default? I tried adding it to the etc/profile but as the "p2p" user never logs in (only mldonkey server runs as this user) it doesn't work.

If I am doing it the wrong way... :oops: what is the default way of getting what I want?

Thanx
_________________
La PDA de tungsteno
Back to top
View user's profile Send private message
born
n00b
n00b


Joined: 25 May 2004
Posts: 53
Location: Germany

PostPosted: Fri Jul 08, 2005 8:11 pm    Post subject: Reply with quote

Just change the permissions of the "incoming" folder to 775, this should solve your problem.
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