Koozali.org: home of the SME Server

Disappearing www user: HTTPD bad user 'www'

Offline mikedawson

  • 3
  • +0/-0
Disappearing www user: HTTPD bad user 'www'
« 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


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Disappearing www user: HTTPD bad user 'www'
« Reply #1 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

guest22

Re: Disappearing www user: HTTPD bad user 'www'
« Reply #2 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.