Issue : User Home directory not getting created automatically, during LDAP & AD authentication of users
Cause : pam_mkhomedir.so shared object is missing
Solution :
Step 1 :
[root@mail ~]# yum install -y pam_mkhomedir.so
[root@mail ~]# yum install -y oddjob-mkhomedir
[root@mail ~]# chkconfig oddjobd on
[root@mail ~]# service oddjobd start
Starting oddjobd: [ OK ]
[root@mail ~]# authconfig --enablemkhomedir --update
Starting Winbind services: [ OK ]
Starting oddjobd: [ OK ]
[root@mail ~]#
Step 2 :
Verify the home directory creation
login as: isvivek
isvivek@192.168.248.128's password:
Creating home directory for isvivek.
Last login: Thu May 30 12:59:17 2013 from 192.168.248.1
[isvivek@mail ~]$ pwd
/home/ISVIVEK/isvivek
[isvivek@mail ~]$
If still it doesn't work after above changes...
check and add the below entry in "/etc/pam.d/system-auth" & "/etc/pam.d/sshd" files,
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
This will fix the issue... All the best !!
Cause : pam_mkhomedir.so shared object is missing
Solution :
Step 1 :
[root@mail ~]# yum install -y pam_mkhomedir.so
[root@mail ~]# yum install -y oddjob-mkhomedir
[root@mail ~]# chkconfig oddjobd on
[root@mail ~]# service oddjobd start
Starting oddjobd: [ OK ]
[root@mail ~]# authconfig --enablemkhomedir --update
Starting Winbind services: [ OK ]
Starting oddjobd: [ OK ]
[root@mail ~]#
Step 2 :
Verify the home directory creation
login as: isvivek
isvivek@192.168.248.128's password:
Creating home directory for isvivek.
Last login: Thu May 30 12:59:17 2013 from 192.168.248.1
[isvivek@mail ~]$ pwd
/home/ISVIVEK/isvivek
[isvivek@mail ~]$
If still it doesn't work after above changes...
check and add the below entry in "/etc/pam.d/system-auth" & "/etc/pam.d/sshd" files,
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
This will fix the issue... All the best !!

No comments:
Post a Comment