Red Hat Bugzilla – Bug 174607
/root created with wrong selinux context
Last modified: 2007-11-30 17:11:18 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8) Gecko/20051118 Fedora/1.5-0.5.0.rc3 Firefox/1.5
Description of problem:
/root is created as system_u:object_r:default_t, but it needs system_u:object_r:user_home_dir_t to function properly. Without it, you get errors as follows.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.Log in as some regular user
3.Run `su -'
Actual Results: su: warning: cannot change directory to /root: Permission denied
su: warning: cannot change directory to /root: Permission denied
Expected Results: No such warnings or failures to chdir.
restorecon /root is enough to fix the problem.
*** This bug has been marked as a duplicate of 174227 ***