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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20090709/747917b0/attachment-0003.html>
2009/7/9 hqm8512 <hqm8512 at 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20090709/fac91781/attachment-0003.html>