I'm running Debian 6, and the last big update seems to have broken some,
but not all, of my jails. I had installed the server as Debian 6 and
Jailkit 2.14 and set up about 8 jails for different users. Everything
worked great until the update when a few of the jails started to
segfault when running commands. For example, I could log in as the
jailed user 'bob', but when I ran `ls` I received a segfault message.
I tried to update these broken jails with jk_update, but the command
just dropped back to a command prompt as if there was nothing to do. I
then removed all the directories created by jailkit except for the
user's home directory, and recreated the jail like this:
jk_init -c /etc/jailkit/jk_init.ini /var/www/clients/mydomain.com
<http://mydomain.com> extshellplusnet
jk_init -c /etc/jailkit/jk_init.ini /var/www/clients/mydomain.com
<http://mydomain.com> limitedshell
jk_cp -j /var/www/clients/mydomain.com/ <http://mydomain.com/> -k /bin/bash
jk_jailuser -s /bin/bash -j /var/www/cients/mydomain.com/
<http://mydomain.com/> bob
I could log in and run commands, but the prompt now shows 'I have no
address@hidden', like the jail cannot see /etc/passwd. I checked and there
is a proper /etc/passwd file in the jail: