I am trying for setting the chroot for ssh.
I entered the following entry in the /etc/pam.d/sshd file
session required pam_chroot.so onerr=fail
and I entered the entry for user1 in /etc/security/chroot.conf file
And I did the modifications to /etc/ssh/ssd_config file
after that, while logging to the ssh server with the user1 account, I am getting the following errors.
#ssh localhost -l user1
Connection to 192.168.30.10 closed by remote host.
Connection to 192.168.30.10 closed.
My /var/log/secure entries for this event are :
Jan 19 16:14:14 ndserver sshd: Accepted password for user1 from 192.168.30.10 port 1195 ssh2
Jan 19 16:14:14 ndserver pam_chroot: /home/user1 is writable by non-root
Jan 19 16:14:14 ndserver sshd: fatal: PAM session setup failed: Cannot make/remove an entry for the specified session
Please help me.
thanks & regards,