ERROR: bad user name wwwrun

  • 7006512
  • 27-Jul-2010
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES2) Linux Support Pack 2
SUSE Linux Enterprise Server 10 Service Pack 3

Situation

Apache and Tomcat fails to start
ERROR: httpd2-worker: bad user name wwwrun
ERROR: /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL
ERROR: wwwrun:www: invalid user


Resolution

Steps to Resolution:
  1. Ensure www group and wwwrun user are LUM enabled
    • Launch iManager | Linux User Management | Enable Groups for Linux | browse and select wwwrun user | next | browse and select www group | next | browse and select the Unix Workstation object for the server | next | finish.
    • On the server terminal run the following commands:
      • namconfig cache_refresh
      • rcnamcd restart
      • id wwwrun      (# it should display a return value for UID and GID)
  2. Modify /etc/passwd file and add the following line to the end of the file:
      • wwwrun:x:30:8:www daemon apache:/var/lib/wwwrun:/bin/false
  3. Modify /etc/group file and add the following line to the end of the file:
      • www:x:8:
      • rcapache2 restart
      • rcnovell-tomcat5 restart