Apache Server configuration support - chroot apache 2.0.52 - httpd: bad user name

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2004 > chroot apache 2.0.52 - httpd: bad user name





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author chroot apache 2.0.52 - httpd: bad user name
Pit

2004-11-29, 2:52 am

hi!

my configuration
apache 2.0.52
../configure --prefix=/apache --enable-mods-shared=most --enable-deflate --en
able-ssl

then make and make install.

Directories

/chroot/apache/; /chroot/etc; /chroot/dev/ ; /chroot/usr/lib

I have copied all libraries ldd /apache/bin/httpd and also from /etc :
hosts, resolv.conf, localtime, passwd, group to /chroot/etc.

I have created /chroot/dev/null device : mknod c 1 3

I have modified /chroot/apache/bin/apachectl script

HTTPD='/usr/sbin/chroot /chroot /apache/bin/httpd'

when i start apache:

# /chroot/apache/bin/apachectl start i get

httpd: bad user name apache2

the user exists in /chroot/etc/passwd

When I change user in /chroot/apache/conf/httpd.conf for example

User userX

Group groupx

/chroot/apache/bin/apachectl gives me

httpd: bad user name userX

any suggestion would be very appreciated

thx in advace

cheer PIT


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com