Greetings!
I have a Solaris workstation that I use for web hosting. It runs SAMP and everything was working good for me until I got a need to add a couple of co-workers to help me with development. I'm trying to find some guidance for how to set up filesystem permissions so everybody would be able to upload their PHP scripts to the workstation without permission issues. By no means I'm a system administrator, just using my limited skillset to get things done
So here is my current setup, I don't really know if it's correct, but I'm in secure environment and it gets things done:
- All web pages are in /www directory (documentRoot).
- Apache runs under webservd user, no shell configured for that user.
- /www belongs to my UNIX login, so I can upload scripts to /www.
- subdirectories in /www that are used for uploads through web page (when user sends file to the server) belong to webservd. And that's cool since they have no PHP scripts in them.
Now the project is growing and I need to add a couple of guys who should be able to upload their PHP scripts to /www.
Here is the couple of ways I figured so far:
1) I give them my password - (not cool, like I did not try to figure right thing out)
2) I create a new UNIX user (upload) and change /www owner to that - (again, the password has to be shared, so it's just a little better)
3) Find a right way to do it (that's pretty much why I'm writing this post
)
Any ideas/help to point me in a right direction are greatly appreciated!
Thank You,
PN.