[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems chrooting Apache-ssl 1.3.26 under Debian Woody



I am trying to chroot the apache-ssl process (from the apache-ssl package) version 1.3.26 using Debian Woody as the environment.

but when I execute:
chroot /chroot/apache-ssl /usr/sbin/apache-ssl
I ge the following error:
apache-ssl: bad user name www-data

Which is something I didn't expect.
My chroot directory is /chroot/apache-ssl/
and there exists a /chroot/apache-ssl/etc/passwd file that has both a www-data entry and a nobody entry.
Like so:
www-data:x:33:33:www-data:/var/www:/bin/sh
nobody:x:65534:65534:nobody:/home:/bin/sh
Which I thought would be sufficent to avoid a problem like this.
but just to make sure there are also passwd-, group, group-, gshadow, gshadow-, shadow, and shadow- files that have a similar reduced number of entries.

Is there something I am missing?

Thanks,
Jason



I am including my log of steps taken during the chroot process. If you want more information please contact me. Thanks for any help or insight you can provide.

apache-ssl:

Country: US
State: Minnesota
Locality: Minneapolis
Organization: [censored]
Unit: Web Services
Server Name: [censored]
Email: [censored]
Set ServerName in /etc/apache-ssl/httpd.conf
Disable all but the following modules: Set ServerSignature to Off.
Disable Icon Alias and ScriptAlias
CHRoot Server: Change /etc/init.d/sysklogd We need the following binaries: We need the following libraries: We need the following files: echo "working..." > /chroot/apache-ssl/var/www/index.html
Remove all but www-data and nobody from passwd, shadow, and group
start chrooted server:
Replace in /etc/logrotate.d/apache-ssl /var/log/apache-ssl/*.log with /var/chroot/apache-ssl/var/log/apache-ssl/*.log
Reply to: