Wrong homedir in jailed /etc/passwd
short description
When I create a shell user with Jailkit set it works ok but the settings of his homedir in jailed /etc/passwd is empty. So in the system passwd file there is (i changed the numbers to differ from my production system):
testuser:x:1234:1235::/var/www/clients/client1/web1/./home/testuser:/usr/sbin/jk_chroots
and in the jailed passwd (/var/www/clients/client1/web1/etc/passwd) is following:
testuser:x:1234:1235:::/bin/bash
there is no home dir. I would expect according to settings in ispconfig to have "/home/testuser" to be there.
Also, when i do following under that user, I get the correct dir:
echo $HOME
/home/testuser
The problem is with git client which by default looks for files ~/.ssh/id_rsa and ~/.ssh/config to find deployment keys - but it is looking thorugh passwd file to get home dir. So it is directed to /.ssh folder instead of /home/testuser/.ssh - so I cant even have different deployment keys for different shell users.
When i manually edit the chrooted passwd file to following:
testuser:x:1234:1235::/home/testuser:/bin/bash
everything is working as expected.
environment
Server OS: Debian Server OS version: 9 ISPConfig version: 3.1.11