Make user home directory at gdm login

Posted by Lorenzo on Server Fault See other posts from Server Fault or by Lorenzo
Published on 2011-11-08T11:11:12Z Indexed on 2011/11/18 9:55 UTC
Read the original article Hit count: 362

Filed under:
|
|

I'm trying to make home directory at (RADIUS) user gdm login.

The auth is working right, but when I try gdm says that the user hasn't a home directory.

I tried to do that with pam_mkhomedir.so but is not working.

My /etc/pam.d/gdm file:

PAM-1.0
auth    sufficient  pam_radius_auth.so  
auth    sufficient       pam_nologin.so 
auth    sufficient        pam_env.so readenv=1 
auth    sufficient        pam_env.so readenv=1 envfile=/etc/default/locale
auth    sufficient  pam_succeed_if.so 
@include common-auth 
auth    optional        pam_gnome_keyring.so 
account sufficient  pam_radius_auth.so
@include common-account
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
session optional        pam_limits.so 
@include common-session 
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open 
session optional        pam_gnome_keyring.so auto_start 
session required    pam_mkhomedir.so skel=/etc/skel umask=0022
@include common-password

Thanks

© Server Fault or respective owner

Related posts about ubuntu

Related posts about pam