Hey All,
I need to have oddjob create the home folders under an alternate directory, /n/home that I plan to share out. I can successfully change the directoy from /home to /nfshome after changing the selinux context and oddjob makes the new home folder under /nfshome:
PHP Code:
[root@host /]# semanage fcontext -a -t home_root_t /nfshome
[root@host /]# semanage fcontext -a -e /home /nfshome
[root@host /]# restorecon -vR /nfshome
(courtesy
http://serverfault.com/questions/521...elinux-context )
However when I try to configure the system to use /n/home instead of /nfshome, the folder is never created AND there is nothing in the log files to even indicate that oddjob attempted to create a folder under /n/home.
PHP Code:
# ls -ldZ /home
drwxr-xr-x. root root system_u:object_r:home_root_t:s0 /home
# ls -ldZ /nfshome
drwxr-xr-x. root root system_u:object_r:home_root_t:s0 /nfshome
# ls -ldZ /n/home
drwxr-xr-x. root root unconfined_u:object_r:home_root_t:s0 /n/home
# ls -ldZ /n
drwxr-xr-x. root root system_u:object_r:file_t:s0 /n
#
Is there a parent relationship on folders I need to take care of with selinux first on the parent folder /n before oddjob can create home folders in /n/home/?
Also how and where to turn on SELinux debugging messages? (I'm new to selinux)
Thanks,
Devyn