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 extshellplusnet
jk_init -c /etc/jailkit/jk_init.ini /var/www/clients/
mydomain.com limitedshell
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:
I can even see the file if I su as bob, so when I'm in the jail it all looks like fine. Inside the file, the UIDs match up to the system. In this case, bob is 1002 in both the system's /etc/passwd file and in the jail's /etc/passwd.
The last thing I can think of doing is backing up the files, completely destroying the broken jails and the users, and starting them over from scratch. Short of that, what else can I look at or try to fix them?
Thanks in advance for any help that can be provided.
-Chris