Problems with pam_chroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have compiled and installed pam_chroot. My /etc/pam.d/sshd (SuSE) looks now 
like this:

auth required   pam_unix2.so # set_secrpc
auth required   pam_nologin.so
auth required   pam_env.so
account required        pam_unix2.so
account required        pam_nologin.so
password required       pam_pwcheck.so
password required       pam_unix2.so    use_first_pass use_authtok
session required        /lib/security/pam_chroot.so debug
session required        pam_unix2.so    none     # trace or debug
session required        pam_limits.so

Additionally I have configured /etc/security/chroot.conf as follows and 
created a basic file system under /home/pmuster:
pmuster	/home/pmuster

When I now try to login remotely as pmuster I get the following error messages 
in my /var/log/messages:

Aug 14 16:09:23 susi pam_chroot[2721]: session: reading config file 
(/etc/security/chroot.conf)
Aug 14 16:09:23 susi pam_chroot[2721]: session: found chroot_dir 
"/home/pmuster" for user "pmuster"
Aug 14 16:09:23 susi pam_chroot[2721]: session: chroot(/home/pmuster): 
Operation not permitted
Aug 14 16:09:23 susi pam_chroot[2721]: session: returning failure
Aug 14 16:09:23 susi sshd[2721]: fatal: PAM session setup failed[14]: Cannot 
make/remove an entry for the specified session

Any ideas what might cause this? Actually I have created a basic file system 
for that user and a "su - pmuster" works fine (no chrooted environment 
then!). Any hints?

Thank you very much.

Bye,
Werner.


_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux