chroot problem
Hi,
I have searched the web over looking to chroot my Abyss web server and haven't found much. I used "ldd" to find all my dependencies and created a little directory tree inside my jail with bin,usr,lib,var & etc.
When I try to chroot to my jail for testing, I get "chroot: cannot run command `/bin/bash': No such file or directory"
Yes, I copied /bin/bash to $JAIL/bin/
I don't understand what I doing wrong. Can anyone help?
RK
#ls -l $JAIL
-rwxr--r-- 1 abyss web 582 Jul 14 17:40 Installation Instructions.html
-rw------- 1 abyss web 11125 Jul 17 07:40 abyss.conf
-rwxr--r-- 1 abyss web 387144 Jul 14 17:40 abyssws
drwxr-xr-x 2 root root 120 Jul 18 20:16 bin
drwxr-xr-x 2 abyss web 1128 Jul 14 17:40 console
drwxr-xr-x 2 abyss web 1512 Jul 14 17:40 doc
drwxr-xr-x 2 root root 216 Jul 18 20:09 etc
drwxr-xr-x 7 abyss web 1568 Jul 14 17:42 htdocs
drwxr-xr-x 2 abyss web 96 Jul 14 17:42 lang
drwxr-xr-x 2 root root 664 Jul 18 20:07 lib
-rwxr-xr-x 1 abyss web 2842 Jul 18 20:09 libs
-rwxr--r-- 1 abyss web 8326 Jul 14 17:42 license.txt
drwxr-xr-x 2 abyss web 168 Jul 14 17:42 log
-rwxr--r-- 1 abyss web 779 Jul 18 20:20 persist.data
drwxr-xr-x 3 root root 72 Jul 18 20:07 usr
drwxr-xr-x 3 root root 72 Jul 18 20:07 var
#ls -l $JAIL/bin
total 1541
-rwxr-xr-x 1 root root 741740 Jul 18 20:09 bash
-rwxr-xr-x 1 root root 83460 Jul 18 20:09 ls
-rwxr-xr-x 1 root root 741740 Jul 18 20:16 sh
|