You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Arthur DiSegna <ad...@authentium.com> on 2005/12/30 18:50:39 UTC

[users@httpd] User value dispalyed with ps on httpd??

Hello,

By default Apache starts it first process under root and all children
run as a different user/group processes (nobody). 

I added a user and group (both with the same name) and assiged the GID a
value of 60000. 
I changed the httpd.conf directives to match the new values.
 
User newuser
Group newuser

When I run ps aux | grep httpd the values under root display as 60000
versus the user. 

root     28260  0.0  0.0   4736  2204 ?        Ss   12:40   0:00
/cant/tell/apacheAH64/bin/httpd -k restart
60000    28261  0.0  0.0   4872  2220 ?        S    12:40   0:00
/cant/tell/apacheAH64/bin/httpd -k restart

/etc/passwd reads -
newuser:x:60000:60000:newuser:/var/lib/nobody:/bin/bash

/etc/passwd for nobody reads -
nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash

/etc/group reads - newuser:x:60000:newuser

What am I missing?

Thanks 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] User value dispalyed with ps on httpd??

Posted by Danijel Tasov <ap...@kobalt.ath.cx>.
Arthur DiSegna wrote:
> root     28260  0.0  0.0   4736  2204 ?        Ss   12:40   0:00
> /cant/tell/apacheAH64/bin/httpd -k restart
> 60000    28261  0.0  0.0   4872  2220 ?        S    12:40   0:00
> /cant/tell/apacheAH64/bin/httpd -k restart
> 
> /etc/passwd reads -
> newuser:x:60000:60000:newuser:/var/lib/nobody:/bin/bash
> 
> /etc/passwd for nobody reads -
> nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash

Has the new user name more than 9 characters? ps is showing the
user id if it has. But this is the wrong forum to ask, because it
is a Linux/Unix related question.

bye,
/DaTa

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org