Relabeling User home directories
Daniel J Walsh
dwalsh at redhat.com
Fri Jan 18 13:36:14 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tony Molloy wrote:
> Hi,
>
> First of all this is a SElinux question on a CentOS File server rather than
> Fedora but I don't think that should make any difference. The clients are
> Fedora.
>
> For historical reasons we mount our user home directories under /users instead
> of /home. During a recent installation of CentOS-5 the user home directories
> appear to have been relabeled. Many now seem to have the type default_t
>
> drwx------ 8237 csim root:object_r:default_t x0667617
>
> If I unmount the users directories and mount them under /home can I use
> restorecon -v /home to restore the correct file contexts as I understand that
> SElinux understands /home is for user directories. Also if I can do that will
> the command understand public_html directories have to be labelled so that
> apache can access them.
Yes. restorecon -R -v /home
Should label home dirs correctly and public_html.
SELinux is supposed to figure out that homedirs are mounted under /users
and label that correctly. Could you give an example of a homedir entry
in /etc/passwd?
genhomedircon is supposed to setup file labeling for alternate home dir
locations.
>
> Thanks
>
> Tony
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkeQq00ACgkQrlYvE4MpobMDRQCg1JpiBSq9kVjtOFA7/SAOfHUH
XYsAnRUx71D6OZvGMCxPon74TUgbXacR
=qLbT
-----END PGP SIGNATURE-----
More information about the fedora-selinux-list
mailing list