Symptoms
-
A system user is unable to connect to the server via SSH with the chroot environment:
# ssh [email protected]
<…>
Connection to 203.0.113.2 closed. -
In Domains > example.com > Web Hosting Access > System user the Access to the server over SSH is set to
/bin/bash (chrooted)
-
This error is found in
/var/log/messages
or/var/log/syslog
:kernel: [2381259.980854] bash[30893]: segfault at b9002127b4 ip 000000b9002127b4 sp 00007ffdac5cc638 error 14 in libc.so.6[7f2ea39be000+1a1000]
-
The following errors are in
/var/log/auth.log
in some cases:systemd: PAM unable to dlopen(pam_unix.so): /lib/security/pam_unix.so: cannot open shared object file: No such file or directory
systemd: PAM adding faulty module: pam_unix.so
systemd: PAM unable to dlopen(pam_plesk.so): /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /lib/x86_64-linux-gnu/libcrypt.so.1)
systemd: PAM adding faulty module: pam_plesk.so
Cause
Corrupted chroot libraries files.
Resolution
To resolve the issue, rebuild the chroot template using steps from article How to rebuild chroot template?.