Error: 'No such file or directory: getpwuid: couldn't determine user name from uid <Value>, you probably need to modify the User directive.'


This article applies to:

  • Security Reporting Center 2.1

Symptoms:

  • Error: 'No such file or directory: getpwuid: couldn't determine user name from uid <Value>, you probably need to modify the User directive.'
  • Cannot start the Apache process.

Information:

To resolve this issue, complete the following steps:

  1. Navigate to the following directory:

    <SRCInstallDir>/common/apache/conf

  2. Open the httpd.conf file.

  3. Find the following line:

    LoadModule userdir_module modules/mod_userdir.so

  4. Comment out this line by adding a pound (#) sign in front of the line so that it reads:

    #LoadModule userdir_module modules/mod_userdir.so

  5. Repeat steps 3 and 4, and modify the following files:

    <SRCInstallDir>/common/apache/conf/httpd_with_ssl.conf.template
    <SRCInstallDir>/common/apache/conf/httpd_without_ssl.conf.template

  6. Restart the Tomcat and Apache processes by running the following commands from the <SRCInstallDir>/common/bin directory:

    ./stopallui.src
    ./startallui.src

  7. Launch Security Reporting Center.


If this does not resolve the issue, configure User and Group directives.  To do this, please follow the steps below:

  1. Open the httpd.conf file.

  2. At the bottom of the file, add the following lines:

    User nobody
    Group nobody

  3. Save the file.

  4. Repeat step 2, modifying the following files:

    <SRCInstallDir>/common/apache/conf/httpd_with_ssl.conf.template
    <SRCInstallDir>/common/apache/conf/httpd_without_ssl.conf.template

  5. Restart the Tomcat and Apache processes by running the following commands from the <SRCInstallDir>/common/bin directory:

    ./stopallui.src
    ./startallui.src

  6. Launch Security Reporting Center.

This article was previously published as:
NETIQKB39030

Last Modified 6/25/2008.
https://support.trustwave.com/kb/KnowledgebaseArticle10106.aspx