Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache user...

Status
Not open for further replies.

iranor

Programmer
Jun 17, 2004
174
CA
I installed Apache2.0, but it's running as the user nobody. Is there a way to change that suer? I created the user apache with the same group, but can't find where to tell apache to start with it
 
Thanks! I suppose I have to add Pass somestuff to set one?

Also, I have multiple users on my server. It looks like /home/$nick/www.

Is there a way to prevent users from seeing each other's files? like making apache and owner the only one able to read?
 
Hi

I do not understand the first sentence with that add Pass.

You could make a group for each user. In the following example the user is called loser :
Code:
groupadd loser
chgrp loser /home/loser
chmod ug=rwx,o= /home/loser
usermod -G loser apache
Note : this is a sketch of the usual procedure, I never tried it.

Feherke.
 
Apache doesn't get a password. In fact, you should have set the shell to /sbin/nologin. The home directory really doesn't matter but in some linux distros it's /var/www.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top