hello , we're using LDAP for user authentication
I'm looking for a mechanism to automatically create a users home directory when he logs in for the first time Thanks,
-- Best Regards
2009/7/9 hqm8512 hqm8512@126.com:
hello , we're using LDAP for user authentication
I'm looking for a mechanism to automatically create a users home directory when he logs in for the first time Thanks,
If using authconfig, can pass the --enablemkhomedir
This works by putting the following in /etc/pam.d/system-auth session optional pam_mkhomedir.so
Seán
2009/7/9 hqm8512 hqm8512@126.com
hello , we're using LDAP for user authentication
I'm looking for a mechanism to automatically create a users home directory when he logs in for the first time Thanks,
The autodir package will do precisely that. It's easy to setup too:
yum -y install autodir mkdir /u
Edit /etc/sysconfig/auto AUTOHOME_HOME=/home/ldapusers AUTOHOME_OPTIONS="realpath=/u,level=2,skel=/etc/skel,mode=0700"home
service autohome start