Properly configure jk_chrootsh
We need to write our own /etc/passwd
file inside each jail which defines proper shells for all users in that jail. Also, their home directories need to be defined such that they are relative to the jail root and not the global root.
Then, the alias definitions need to be adjusted so that the root directory for them will always be correct.
See also https://olivier.sessink.nl/jailkit/jk_chrootsh.8.html
Edited by Jürgen Haas