Hi all, Today I installed httpd and tried to chroot it into /chroot/httpd. I have copied all the necessary libs and files, but when I ran chroot /chroot/httpd /var/httpd/bin/chroot, it kept reporting the error like below:
[EMAIL PROTECTED] /chroot/httpd/var/httpd/bin# chroot /chroot/httpd /var/httpd/bin/httpd chroot: cannot run command `/var/httpd/bin/chroot': No such file or directory Here is my /chroot/httpd/var/httpd directory: [EMAIL PROTECTED] /chroot/httpd# ls -l var/httpd/ total 28 drwxr-xr-x 2 root root 4096 Jul 14 07:59 bin/ drwxr-xr-x 2 root root 4096 Jul 14 07:59 conf/ drwxr-xr-x 3 root root 4096 Jul 14 07:59 error/ drwxr-xr-x 2 root root 4096 Jul 14 07:59 htdocs/ drwxr-xr-x 3 root root 4096 Jul 14 07:59 icons/ drwxr-xr-x 2 root root 4096 Jul 14 07:59 lib/ drwxr-xr-x 2 root root 4096 Jul 14 07:59 logs/ [EMAIL PROTECTED] /chroot/httpd# ls -l var/httpd/bin/ total 2208 -rwxr-xr-x 1 root root 67111 Jul 14 07:59 ab* -rwxr-xr-x 1 root root 3102 Jul 14 07:59 apachectl* -rwxr-xr-x 1 root root 6624 Jul 14 07:59 apr-config* -rwxr-xr-x 1 root root 5737 Jul 14 07:59 apu-config* -rwxr-xr-x 1 root root 22781 Jul 14 07:59 apxs* -rwxr-xr-x 1 root root 15265 Jul 14 07:59 checkgid* -rwxr-xr-x 1 root root 8729 Jul 14 07:59 dbmmanage* -rwxr-xr-x 1 root root 823 Jul 14 07:59 envvars* -rwxr-xr-x 1 root root 823 Jul 14 07:59 envvars-std* -rwxr-xr-x 1 root root 28293 Jul 14 07:59 htdbm* -rwxr-xr-x 1 root root 22858 Jul 14 07:59 htdigest* -rwxr-xr-x 1 root root 27385 Jul 14 07:59 htpasswd* -rwxr-xr-x 1 root root 1966419 Jul 14 07:59 httpd* -rwxr-xr-x 1 root root 21669 Jul 14 07:59 logresolve* -rwxr-xr-x 1 root root 23187 Jul 14 07:59 rotatelogs* I could even run the /chroot/httpd/var/httpd/bin/httpd binary alone without chroot as you can see: [EMAIL PROTECTED] /chroot/httpd# /chroot/httpd/var/httpd/bin/httpd -l Compiled in modules: core.c mod_access.c mod_auth.c mod_log_config.c mod_setenvif.c mod_proxy.c proxy_connect.c proxy_ftp.c proxy_http.c mod_ssl.c worker.c http_core.c mod_mime.c mod_security.c mod_autoindex.c mod_negotiation.c mod_dir.c mod_alias.c mod_rewrite.c What happed? Please advise, thx. Regards, --Thai Duong. _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
