|
From: | Steve Weber |
Subject: | [Jailkit-users] passwd not read |
Date: | Wed, 27 Aug 2014 16:41:55 +0200 |
Hello, on a server we have a problem. Sftp or other services which require passwd are not usable. OS: Debian 7.3 (2.6.32-16-pve … x86_64 GNU/Linux) Jailkit: 2.15 address@hidden:~$ whoami whoami: cannot find name for user ID 1011 address@hidden: ~$ ssh You don't exist, go away! address@hidden: ~$ cat /etc/passwd root:x:0:0:root:/root:/bin/bash web751:x:1011:1006:::/bin/bash After reading some websites we discovered that our problem is /etc/jailkit/jk_init.ini In [uidbasics] and [netbasics] we added the correct paths to the libnss*-files. (We added the red adjustments) [uidbasics] # this section probably needs adjustment on 64bit systems # or non-Linux systems comment = common files for all jails that need user/group information libraries = /lib/libnsl.so.1, /lib64/libnsl.so.1, /lib/libnss*.so.2, /lib64/libnss*.so.2, /lib/x86_64-linux-gnu/libnsl.so.1, /lib/x86_64-linux-gnu/libnss*.so.2 regularfiles = /etc/nsswitch.conf, /etc/ld.so.conf [netbasics] comment = common files for all jails that need any internet connectivity libraries = /lib/libnss_dns.so.2, /lib64/libnss_dns.so.2, /lib/x86_64-linux-gnu/libnss_dns.so.2 regularfiles = /etc/resolv.conf, /etc/host.conf, /etc/hosts, /etc/protocols It still doesn’t work, and we don’t know what to do next. Can anyone help? Greetings Steve |
[Prev in Thread] | Current Thread | [Next in Thread] |