Hi, after upgrading to Debian Buster, I get a "I have no name" and a lot of UID issues with programs when I try to use them inside the jailed shell. https://i.ibb.co/HV6bR6v/Bildschirmfoto-2020-03-09-um-13-39-41.png Is this something known? How can I fix this? Thanks!
https://unix.stackexchange.com/questions/63182/whoami-cannot-find-name-for-user-id-0 Found that using Internet search engines with Code: whoami: cannot find name for user ID
My first approach was to find out, what happened, since it was working before I've upgraded to Debian Buster. I reinstalled Jailkit using version 2.20 from the perfect server tutorial (because everything was working before the upgrade). Now I have couple of broken Jailed accounts and I try to find a proper fix, not only hotfixing one particular user
Try to find out why you get this message by checking the global /etc/passwd file and if that's ok, check the passwd file in the affected jail.
I used "chattr -i" on those webroots, removed "rm -rf bin etc lib lib64 usr dev", removed ssh user, re-added ssh-user and everything is working again.
Ok, so the reason for the issue is just that the jail still contained old files. Jailkit has a command to update jails, you should be able to find more details in the jailkit docs and there is also a jail update script somewhere here in the forum, probably in tipps & tricks.
Yes, I already have that jk_update script from the user Jesse with a cronjob, but looks like there have been more stuff broken after the upgrade. But since I know how to fix this now, I will go the hard way and remove those corrupted jails manually.
jk_updater_ispc has a -reinit you should use after upgrading OS versions. If you have any broken jails left, give it a try. https://git.ispconfig.org/ispconfig/ispconfig3/issues/2140