F8: Cannot log in with home directory on LUKS partition

Stefano Cavallari stefano at cavallari.cjb.net
Sat Nov 10 11:41:29 UTC 2007


On Saturday 10 November 2007 05:08:43 Nothus Infelix wrote:
> I used F7 with my home directory on an encrypted LUKS partition for
> some time. Today, I blew away my root partition and installed F8 on it.
> Now, I can't log in with my user account. Whether logging in graphically
> or on the console, the system complains that /home/user can't be found.
> The console will log me in with / as my home directory, and kdm offers
> to do the same but cancels the login if I say no.
>
> Odder still, once I'm logged in, bash has no problem finding my home
> directory. If I do cd ~ (as user) or cd ~user (as root), I'm put right
> in to my home directory.
>
> Here's the relevant partitions:
>
> crypttab:
> home_crypt /dev/sda5 none
>
> fstab:
> /dev/mapper/home_crypt /home/user ext3 rw,noatime 0 0
>
> And here's the ls -l of /home:
> drwx------ 45 user user 4096 2007-11-09 13:59 user
>
> Like I said above, the partition is mounted correctly at boot time and
> the files are accessible to my user, and even bash resolves ~ correctly.
> It looks like the problem is just in login. Any thoughts?
>
> --
> NI

That problem happened to me too.
It's a SELinux issue:
Try 
"setenforce 0"
before logging in
then you can do
"setenforce 1"
I have an external encrypted home directory too.
Hmm probably the home is mislabeled.
 
-- 




More information about the fedora-list mailing list