Pam_chroot

Kevin Alford Kevin.Alford at gst.com
Thu Mar 23 12:25:27 UTC 2006


I am trying to configure pam_chroot on Redhat ES4.  My log files are
really not giving me any information regarding chroot.
What am I doing wrong?  Does anyone have any documentation on how to
setup chroot for SSH on RedHat?  
I haven't been able to find any  good documentation regarding
pam_chroot.  Any help is greatly appreciated.


My etc/pam.d/sshd configuration is below:
#%PAM-1.0
auth       required     pam_stack.so service=system-auth
auth       required     pam_nologin.so
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth
session    required     /lib/security/pam_chroot.so debug
session    required     pam_stack.so service=system-auth
session    required     pam_loginuid.so

My /etc/security/chroot.conf looks like this
more chroot.conf
# /etc/security/chroot.conf
# format:
# username_regex        chroot_dir
jdoe            /home/jdoe

/home/jdoe looks like this:

-rw-------   1 root root   92 Mar 19 23:13 .bash_history
-rw-r--r--   1 root root   41 Mar 16 15:55 .bash_login
-rw-r--r--   1 root root   20 Mar 16 13:58 .bash_logout
-rw-r--r--   1 root root  131 Mar 16 16:21 .bash_profile
-rw-r--r--   1 root root  124 Mar 16 13:51 .bashrc
drwxr-xr-x   2 root root 4096 Mar 22 11:53 bin
drwxr-xr-x   2 root root 4096 Mar 22 11:56 home
drwxr-xr-x   2 root root 4096 Mar 22 11:58 lib
-rw-r--r--   1 root root   27 Mar 16 16:16 .profile
drwx------   2 jdoe jdoe 4096 Mar 16 13:56 .ssh
-rw-------   1 jdoe jdoe  426 Mar 22 12:36 .Xauthority



Kevin D. Alford


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pam-list/attachments/20060323/ac14e363/attachment.htm>


More information about the Pam-list mailing list