MaxDamage l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/65955713941653223ac41b.gif)
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
Posted: Wed Jan 28, 2004 3:11 pm Post subject: Running server as user "a" and accessing files as |
|
|
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... what is the default way of getting what I want?
Thanx _________________ La PDA de tungsteno |
|