This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Using pam_mount with SDDM to mount a Luks encrypted homedir

Tags: None
(comma "," separated)
cgreene
Registered Member
Posts
1
Karma
0
Hello everyone,

I've been a neon user for a while, recently had to install because boot entries got really screwed up in EFI. For a while I was using /etc/fstab to mount my homedir to /home/[my username] on boot, but I found that a hassle because I had to enter my login password twice. I ended up on that solution after following the guide on the ArchWiki failed because of PAM differences between Ubuntu and Arch.

This time I tried pam_mount. I installed libpam-mount, set up pam_mount.conf.xml, and logged in. TTY login works: my partition is mounted on login and unmounted when I logout. SDDM doesn't though. Watching in the console from a temporary user the partition mounts properly when I enter my password in SDDM, but SDDM hangs indefinitely. I didn't change any /etc/pam.d files because /etc/pam.d/common-auth and /etc/pam.d/common-session were updated to add pam_mount.so and most other files include those other ones, hence the console login working (and SDDM partially so).

Has anyone else encountered issues with SDDM freezing when mounting encrypted home partitions? Is there a viable solution to this problem or am I SOL and have to go back to the /etc/fstab method? Thanks in advance for any help!

EDIT: I'm an idiot. I forgot to change ownership of the /home/[my username] directory to be my user. Fixed with a simple chown -R [my username]:[my username] /home/[my username]. Carry on...
dnelubin
Registered Member
Posts
4
Karma
0
Just now I've got the same issue in KDE Neon.
The SDDM just shows nothing, I see black screen and non-blinking cursor on console #7.
I'm successfully login to text consoles (#1-#6).
The permissions to home folder are correct.

Can it be happen because mount.crypt prints a notice about unsupported utab to stdout?

This caused "system error" pop-up after login in Ubuntu/gdm.
dnelubin
Registered Member
Posts
4
Karma
0
I've tried to follow the recommendations from here: https://github.com/sddm/sddm/issues/694, added "session optional pam_cryptpass.so" but it didn't help.

I'm returning back to mounting partitions with /etc/crypttab while sddm is not functional with pam_mount and luks.
dnelubin
Registered Member
Posts
4
Karma
0
I don't see in syslog lines with "pam_mount entering auth stage" related with sddm. However the line "auth optional pam_mount.so" IS included into /etc/pam.d/sddm.
dnelubin
Registered Member
Posts
4
Karma
0
User avatar
boospy007
Registered Member
Posts
237
Karma
0
OS
Problem exists on KDE Neon 16.04, 18.04 with normal NFS mounts. SDDM only blackscreen. So not really useable ;( Is there some solution with?
User avatar
boospy007
Registered Member
Posts
237
Karma
0
OS
Fixed, with an exclude option:

Code: Select all
...
<volume fstype="cifs" server="storage.tux.local" options="vers=3.0" path="iso-images" mountpoint="~/iso-images"> <not><user>root</user></not> <not><user>sddm</user></not> </volume>
...


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]