LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2007, 07:22 AM   #1
balamurugan_r83
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
httpd: bad user name nobody


I created a chroot jail setup in Fedora Core 2 in a 64 bit OS. After creating the chroot setup and copied the necessary files from the system (like /etc/hosts, /etc/password ...), I tried running the apache in the chroot jail by the command '/usr/sbin/chroot /CHROOT/ /apache/bin/httpd -k start'. But this fails with an error ' httpd: bad user name nobody'. I have greped the 'nobody' part from both the '/etc/passwd' and '/etc/group' files and put it in chroot jail. There is 'nobody' user with id '99'. How to solve this? Any idea?
 
Old 06-05-2007, 12:12 PM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Check to see that you are using the correct root directory and that the jail is mounted if necessary. Do you have a shell installed in the jail? It's possible that the program requires the 'system' function to find the appropriate user ID, which requires a shell.

Maybe you could bind (using 'mount --bind') /etc, /bin, /sbin, and /lib read-only into the jail instead of building a new root file system? Does the program require temp files? How much of a system does it really require? Everything needs to be in the jail, but duplicating the info isn't necessarily the best way to do that.
ta0kira
 
Old 06-06-2007, 01:49 AM   #3
balamurugan_r83
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Tried the 'mount --bind' options for /etc, /bin, /lib, /sys etc.., Even tried
copying the /bin/sh, /bin/bash files into the /CHROOT setup. But nothing helped. Same error occurs?

Can any body help?
 
Old 06-06-2007, 11:20 AM   #4
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Does the program run OUTSIDE of the jail? Maybe it changes user IDs when it runs and expects to have access to certain things.
ta0kira
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd: Bad user name apache Splenden Linux - Server 4 03-27-2007 12:07 AM
httpd: bad group name RichM Linux - General 1 02-23-2006 01:08 PM
bad httpd settings? buehler Linux - Software 1 04-24-2005 02:43 PM
httpd: bad group name { nobody | nogroup } itnix Linux - Software 3 04-21-2005 02:27 AM
bad user name httpd CyberEd Linux - Newbie 3 09-19-2003 03:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration