Red Hat Bugzilla – Bug 572576
After installation with an existing home, login has errors and can't login to home
Last modified: 2010-09-15 07:47:05 EDT
Description of problem:
I installed Fedora 13 branched nightly compose from today (not rawhide) from the live KDE CD (copied to a USB drive because I didn't have empty media available). Installation went without a problem and in the post install screen I configure to "create home directories on first login" (because I plan to use network login on the workstation).
The home partition was not formatted from a previous Linux installation and when I create a user for which a home directory already exists I was notified that the permissions on the existing dir will be changed. That was very nice.
After all that is done, log in from the console looks like this:
workstation login: username
Creating directory '/home/username'
Last login: Thu Mar 11 19:25:34 on tty3
No directory /home/username!
Logging in with home = "/".
/home/username exists and has the correct permissions (the create user process did that ok). At this point if I execute 'cd', I'm moved to my home directory and everything looks fine.
The /home partition is not auto-mounted or anything, and logging out and back in produces the exact same input.
I also can't login using the KDE login manager, possibly due to this or due to another problem - I haven't investigated it properly yet.
Version-Release number of selected component (if applicable):
Regarding the KDM login: when I try that, I get a nice dialog box saying "creating home directory" and when I OK that I get a "Logging in with /" dialog - same as a console login.
Then I get an old style X dialog box (not KDE or GNOME) which says "kstartupconfig4 does not exist or fails. The error code is 3. Check your installation", and an "okay" button.
/usr/bin/kstartupconfig4 exists and I can run it as a user from the console, in which case it does nothing, so I think the problem is indeed the login issue.
Could it be that it is some kind of SELinux problem?
Note that the pam_mkhomedir does not currently work completely correctly in regards to SELinux labels.
Could you try restorecon -R /home/username as root and then try to login again?
After replacing KDM with GDM, the login completes fine, so the login problem looks to me be only affecting KDM. That may warrant another bug report.
Indeed, restorecon solved the login problem in both console and KDM.
The create user step in the first run wizard talked about setting SELinux security contexts, so it looks to have failed in doing that - should that be the fix?
Maybe this failed somehow.
Unfortunately I cannot reproduce this. If you have reproduceable testcase in the current Fedora please reopen.