Problem with existing user directories on F*

Tony Molloy tony.molloy at ul.ie
Thu Nov 29 11:01:57 UTC 2007


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




More information about the fedora-selinux-list mailing list