I am running Jail on my server when I upgraded my
server from Fedora Core 1 to Fedora Core 4. Now jail
no longer works. I re-compiled the jail executable and
I get the following debug:
jail: original user's dir: /home/jail
jail: chrooted user's dir: /home/rsctest
jail: modified environment data: USER=rsctest
jail: modified environment data: LOGNAME=rsctest
jail: modified environment data:
PATH=/usr/local/bin:/bin:/usr/bin
jail: modified environment data: MAIL=/var/mail/rsctest
jail: modified environment data:
SSH_CLIENT=192.168.34.10 36921 22
jail: modified environment data:
SSH_CONNECTION=192.168.34.10 36921 192.168.34.10 22
jail: modified environment data: SSH_TTY=/dev/pts/2
jail: modified environment data: TERM=xterm
jail: modified environment data: HOME=/home/rsctest
jail: modified environment data: SHELL=/bin/bash
jail: argument data: -jail
jail: doing chdir(/home/rsctest)
jail: doing execve(/bin/bash)
Connection to eweb closed.
I see that it is getting to where it should invoke the
bash shell (also tested with /bin/sh) and then it just
closes the connection. What is wrong?
Logged In: NO
I get this error too, looking into it execve is missing
from my system. I am currently using Ubuntu 6.06.
Logged In: NO
On FC6, got the same error. To fix it, issue the following command:
cp /lib/ld-linux.so.2 /var/chroot/lib
This assumes that your chroot is located in /var/chroot