Red Hat Bugzilla – Bug 903880
pam_mkhomedir.so creating home dir with wrong selinux context type
Last modified: 2014-11-06 06:21:59 EST
Description of problem: pam_mkhomedir.so creating home dir with wrong selinux context type Version-Release number of selected component (if applicable): selinux-policy-3.7.19-155.el6_3.13.noarch How reproducible: Configure pam to use pam_mkhomedir.so. Have user login, then do: ls -alZ /home Steps to Reproduce: 1. Configure pam to use pam_mkhomedir.so. 2. Have user login 3. ls -alZ /home Actual results: $ ls -alZ /home/ drwxr-xr-x. user2 user2 unconfined_u:object_r:home_root_t:s0 jsu2 Expected results: drwx------. user1 user1 unconfined_u:object_r:user_home_dir_t:s0 jms Additional info: Same bug reported and fixed in FC17: https://bugzilla.redhat.com/show_bug.cgi?id=863132
Please use oddjob_mkhomedir
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux.
This same problem occours with CentOS 7, so I guess RHEL 7 does this too. So authconfig does pam configuration wrong, it should be configured to use this oddjob_mkhomedir.
Related article: * http://danwalsh.livejournal.com/69837.html
Hi, See documentation at : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Configuring_Authentication.html In short, do following steps before joining to domain yum install -y oddjob-mkhomedir oddjob chkconfig oddjobd on service oddjobd start -- Eero