[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Unable to create home directory (LDAP Authentication)


Please wrap your message at 72 and without html it's better ;)

Le mer. oct. 05 2011 ï 08:00:22 -0000, vijay s sheelavantar dit :
> Hi,I am trying to create the home directories for the users automatically(using pam_mkhomedir.so) when they login using SSH.I have added the below line to /etc/pam.d/system-auth file.PHP Code:session     optional        pam_mkhomedir.so skel=/etc/skel umask=0022  
> user authentication is done by a LDAP server, and the machine is running Fedora OS.I am getting the below errors.PHP Code:Creating directory '/home/vijay'.
> Unable to create directory /home/vijay: Permission denied
> Last login: Wed Oct  5 16:03:53 2011 from
> Could not chdir to home directory /home/vijay: No such file or directory  
> Kindly help me to solve this problem.Warm Regards,Vijay S.

try to put it on /etc/pam.d/common-session.

Best regards,
David Dumortier