FreeBSD - Tutorials, Security
Home   Archives   Sitemap   About   Contact

AIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody

Home NEW! Unix Forum News 100 Tips and Tricks Website Development Server Operating Systems Databases
 Ivorde.ROarrow Server Operating Systems arrowProblems and SolutionsarrowAIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody 

Article Sections

    Hello, Guest !
User name:
Password:
 
Google

 SATELLITE INTERNET
 FreeBSD Tutorials
 Linux LVM Commands
 Free Shell Accounts
 FreeBSD Project
 FreeBSD Handbook
 Advanced Bash-Scripting Guide
 The OpenBSD Project
 Distrowatch
 FreeBSD Handbook


Apache Webserver Home Page

Blog, intrebari si raspunsuri despre Leasing

Posted on: 02 Dec 2007
Author: mandrei
Section: Server Operating Systems | Problems and Solutions
Views: 355
Comments: 2 (Add)

AIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody
After upgrading AIX version 5.3 Apache daemon httpd doesn't want to start: httpd: bad user name nobody

Technology Level 6 for AIX 5.3 can come with a surprise. Specially if you have Apache 1.3 running.

$ /usr/local/apache/bin/apachectl start
httpd: bad user name nobody
/usr/local/apache/bin/apachectl start: httpd could not be started

I was very surprised seeing this. I imidiately checked httpd configuration file /usr/local/apache/conf/httpd.conf to see under which user is apache supposed to start

$ grep ^User /usr/local/apache/conf/httpd.conf
User cp1adm

Hmm... httpd configuration file is supposed to start under cp1adm user. So I try to start it again. Same result: httpd: bad user name nobody

The first that came to my mind was to start httpd with -f option:  -f file : specify an alternate ServerConfigFile

$ file /usr/local/apache/bin/httpd
/usr/local/apache/bin/httpd: 64-bit XCOFF executable or object module
$
$ /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf
httpd: bad user name nobody
/usr/local/apache/bin/apachectl start: httpd could not be started

Seems that httpd ignores User cp1adm line stated in /usr/local/apache/conf/httpd.conf configuration file.

Next, I try to see if httpd binary file even tries to read it's config file: 

$ truss /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf >truss.out 2>&1
httpd: bad user name nobody
/usr/local/apache/bin/apachectl start: httpd could not be started

Now I start greping for "conf" or "httpd.conf" in truss.out which is the output of the truss command, but without result. Seems that httpd doesn't even read the configuration file. So it's a problem, maybe, with user nobody.

$ id nobody
uid=4294967294(nobody) gid=4294967294(nobody)
$ lsgroup nobody
nobody id=4294967294 admin=false users=nobody registry=files

The UID and GID of this user seem to be a little strange.

After searching the web for some information regarding these values, I try to change the UID and GID of user nobody to 65534. This can be done either by using smitty user and smitty group fast paths, either by using chgroup and chuser commands:

$ chgroup id=65534 nobody
3004-719 Warning: /usr/bin/chgroup does not update /etc/passwd with the new gid.
$ id nobody
uid=65534(nobody) gid=65534(nobody)

Please note that also /etc/passwd file must be edited to have the following UID and GID for user nobody:

$ id nobody
uid=65534(nobody) gid=65534(nobody)

After this apache starts without problems as the user it is supposed to

$ /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
$ ps -ef | grep http
root   332014 1 0 15:13:41  – 0:00 /usr/local/apache/bin/httpd
cp1adm 237718 332014 0 15:13:41  – 0:00 /usr/local/apache/bin/httpd
cp1adm 254028 332014 0 15:13:41  – 0:00 /usr/local/apache/bin/httpd
cp1adm 311458 332014 0 15:13:41  – 0:00 /usr/local/apache/bin/httpd
cp1adm 319734 332014 0 15:13:41  – 0:00 /usr/local/apache/bin/httpd
cp1adm 323838 332014 0 15:13:41  – 0:00 /usr/local/apache/bin/httpd

I don't quite understand why it was working fine before Technology Level 6 (Service Pack 3) upgrade.

Comments are welcome. 

Bookmarks: Echo "AIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody" around:
del.icio.usdiggFurlYahooMyWebGoogleBookmarksFaceBookTechnocratti
-------------------advertising-----------------

Other articles in Server Operating Systems / Problems and Solutions
» Packet Filter broken on FreeBSD 6.2 ? Unusual pf error
» Unix - How to find the largest 10 files in a filesystem
» How to remove first/last character from a string using SED
» Change user shell on FreeBSD Linux and AIX
» How to change a user's password in AIX with the output from ECHO command




Contact webmaster regarding this article
Register or Login to post your article
Hello, Guest ! You can Login or Register to www.ivorde.ro!

 Post comment:

Name:
Title:
Comment:
Please type the word you see in the image (anti-spam verification). Refresh the page if you don't understand the word.
Verification code
Allowed HTML Tags for comments:<p><strong><em><u><h1><h2><h3><h4><h5><h6><img><li>
<ol><ul><span><div><br><ins><del>

2 comment(s) to AIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody:

1. Re: AIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody
dddd by dushi_op@hotmail.com at February 18th, 2008 - 16:23
shhhhdhsd

2. Re: AIX 5.3 TL 6 and Apache 1.3 - httpd: bad user name nobody
kosova by dushi at February 18th, 2008 - 16:22
sbhbhhsdhdhd

   Latest topics on the forum:
Nginx + php-fpm setting php upload_max_filesize and other php values per vhost
Mysql> how to store select Zulu / UTC timestamp in database
Quagga ospf neighbour stuck in ExStart/DROther state
How to disable anonymous access in samba 3
"checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"
CentOS Install Nemesis packet crafting tool + Libnet
Using curl to get the HTTP response from an HTTP server
Mdadm - Linux software RAID
Linux - Unable to login (and authentication succeeds) - File size limit exceeded
Linux/FreeBSD how to check ntp time synchronization
 
   Most viewed articles:
How to remove first/last character from a string using SED - 6818 views
How to clear/reset DNS cache on Windows XP / Linux - 4477 views
Reloading /etc/profile - how to reload Unix /etc/profile - 4447 views
How to calculate difference in days between two dates in MySQL - 4406 views
Set up HTTP PROXY via command line in Linux/FreeBSD - 3685 views

   Latest 10 articles:
FreeBSD - Collect installed hard disk drive information - 19 Mar 2009
Set up FTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Set up HTTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Qmail relay to smarthost: How to route all mail to a smarthost - 03 Feb 2009
EXIM 4 relay to smarthost: How to route all mail except local domain - 03 Feb 2009
Windows XP: print LISTEN ports and network connections using netstat - 30 Jan 2009
qmail qmail-scanner/clamav qmail-inject: fatal: qq temporary problem / clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2 - 05 Dec 2008
How to cut out first last n characters from each file name, from a filelist - 04 Nov 2008
Mozilla Firefox3 is now released - 18 Jun 2008
How to switch lower case to upper case and upper case to lower case in a string - 17 Jun 2008


Archives
» 2007  |  June  |  October  |  November  |  December
» 2008  |  January  |  February  |  March  |  April  |  May  |  June  |  November  |  December
» 2009  |  January  |  February  |  March



Home | Archives | Sitemap | About | Contact

Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.  
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.
Valid W3 Document Valid XHTML 1.0 Transitional Valid CSS! The FreeBSD Project Viewable With Any Browser