pam_mkhomedir causes segmentation fault after su

Ed Sponsler eds at library.caltech.edu
Thu Feb 10 19:38:40 UTC 2005


I have RHEL 3.0 AS with ldap configured to authenticate and
pam_mkhomedir in /etc/pam.d/system-auth to create home directories if
they don't exist. Everything works fine, except when I su, which causes
segmentation fault.

Removing the pam_mkhomedir line in /etc/pam.d/system-auth fixes the su
problem, but of course I need that to make home directories.


[ed at wrk ed]$ ssh eds at ccdc
eds at ccdc's password:
Creating directory '/home/eds'.
Creating directory '/home/eds/.kde'.
Creating directory '/home/eds/.kde/Autostart'.
/usr/X11R6/bin/xauth:  creating new authority file /home/eds/.Xauthority

// Yeah it works! But...

[eds at ccdc ~]$ su
Password:
Segmentation fault


/var/log/messages
Feb 10 11:28:51 ccdc su(pam_unix)[8750]: session opened for user root by
eds(uid=7365)
Feb 10 11:28:51 ccdc su(pam_unix)[8750]: session closed for user root


/etc/pam.d/system-auth
session     required      pam_mkhomedir.so skel=/etc/skel/ umask=0077


-- 
Ed Sponsler, Caltech Library System
eds at library.caltech.edu
http://coda.caltech.edu




More information about the Pam-list mailing list