Creating home directories on Linux when login - nssswitch

# yum install oddjob-mkhomedir oddjob nscd

# /etc/rc.d/init.d/nscd restart

# /etc/rc.d/init.d/oddjobd restart

# grep SELINUX=disabled /etc/selinux/config

SELINUX=disabled

# authconfig --enablemkhomedir --update

# grep mkhomedir /etc/pam.d/system-auth-ac

# chmod 777 /home