Problem with existing user directories on F*
Daniel J Walsh
dwalsh at redhat.com
Mon Dec 3 16:12:11 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tony Molloy wrote:
> Hi,
>
> After an install of F8 I have a problem with pre-existing user directories.
>
> I did a full install of F8 with SELinux in enforcing mode and kept my existing
> user directories in /users. At the end of the install I did a "fixfiles
> relabel". Now when I try to login to my account I'm told that my home
> directory does not exist. It does.
>
> The problem appears to be SELinux because when I disable it everything works.
>
> Some info:
>
> ls -al| /home/testacc ( account created during the install )
>
> drwx------ testacc testacc system_u:object_r:user_home_dir_t .
> drwxr-xr-x root root system_u:object_r:home_root_t ..
> -rw-r--r-- testacc testacc system_u:object_r:user_home_t .bash_logout
> ....
>
>
> ls -alZ /users/molloyt ( my home directory )
>
> drwx------ molloyt csstaff system_u:object_r:default_t .
> drwxr-xr-x root root system_u:object_r:default_t ..
> -rw-r--r-- molloyt csstaff user_u:object_r:default_t 3rd-monday
> ....
>
> The SELinux permissions on the home directory, the owing directory and the
> contents of the home directory are wrong.
>
> So two questions:
>
> 1. how can I reset the permissions.
>
> 2. was the problem caused by the "fixfiles relabel" which I did at the end of
> the install. If I had unmounted the /users partition before I did that
> would I have been OK.
>
>
> Thanks,
>
> Tony
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
What does molloyt entry in the /etcpasswd file look like? IE Does it
list his homedir as /users/molloyt?
SELinux is supposed to figure out where home directories are and label
them correctly.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHVCrbrlYvE4MpobMRAuZ+AKDoWsJ05eecVotQ04qKMk6WpXsaBgCg11Up
BffORSm5yq8n/Vy+XFTo2bI=
=X09G
-----END PGP SIGNATURE-----
More information about the fedora-selinux-list
mailing list