Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: mikedawson on March 26, 2014, 09:08:13 AM

Title: Disappearing www user: HTTPD bad user 'www'
Post by: mikedawson on March 26, 2014, 09:08:13 AM
Hi,

I have a customer running an SME 8.0 server - and just noticed a couple days ago that the web server was not running.  When I looked I saw that the user 'www' no longer existed in /etc/passwd.  Starting httpd would result in bad user 'www'.

I am baffled as to why it disappeared (could be an update gone wrong, I don't think there is anyway in the web interface to try and kill the www user).  Checking on a normal server I see apache and www share a user and group id (102) - I used the following commands to restore them (in case anyone else sees this):

useradd -b /home/e-smith -u 102 -g 102 -c 'e-smith  web server' -s /bin/false www -o
groupadd -g 102 -o www
nano /etc/group

[find the www: line - add admin to the group as it should be]
www:x:102:admin

Then restart the web server:
sv t httpd-e-smith

And should be back to normal...

Regards,

-Mike

Title: Re: Disappearing www user: HTTPD bad user 'www'
Post by: Stefano on March 26, 2014, 10:11:07 AM
this should be posted in bugzilla.. and you should provide all the necessary info to let developers understand what went wrong..

please do it asap, thank you
Title: Re: Disappearing www user: HTTPD bad user 'www'
Post by: guest22 on March 26, 2014, 09:29:16 PM
@mikedawson,

is your server (yummed) up to date? See bugzilla for some 'www' user issues in the past.