Automake home dir for ldap user

Automake home dir for ldap user, when first time login, add the bold line below at "/etc/pam.d/system-auth" :

# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required
auth        sufficient nullok try_first_pass
auth        requisite uid >= 500 quiet
auth        sufficient use_first_pass
auth        required
account     required broken_shadow
account     sufficient uid < 500 quiet
account     [default=bad success=ok user_unknown=ignore]
account     required
password    requisite try_first_pass retry=3
password    sufficient md5 shadow nullok try_first_pass use_authtok
password    sufficient use_authtok
password    required
session     optional revoke
session     required
session     [success=1 default=ignore] service in crond quiet use_uid
session     required

#Add this line
session     required skel=/etc/skel/ umask=0077

session     optional


[root@ketoprak ~]# ssh kura@localhost
kura@localhost's password: 
Creating directory '/home/kura'.
Creating directory '/home/kura/.mozilla'.
Creating directory '/home/kura/.mozilla/extensions'.
Creating directory '/home/kura/.mozilla/plugins'.
Last login: Mon Aug 22 10:23:56 2011 from


Popular posts from this blog

authentication failure using SSH pam_unix(sshd:auth): authentication failure;

Howto configure SPLUNK Universal Forwarder

openvpn howto make OCSP server using OpenSSL [Part2]