You are not logged in.

#1 2015-09-06 15:43:17

maggie
Member
Registered: 2011-02-12
Posts: 255

Problems with PAM Mount and encrypted /home [solved]

I setup /dev/sda2 with cryptsetup and now have an encrypted /home directory. Pam mount shows that /home can be decyrpted upon login if I modify /etc/security/pam_mount.conf.xml which I did per the wiki adding the three lines and editing them for my system.  I also modified /etc/pam.d/system.auth as the page shows.

If I reboot and login as root, as expected /home is not mounted. If try to log in to the non graphical tty as my user, I get errors:

(mount.c:68): Message from underlying mount program:
(mount:.c:72): crypt_activate_by_passphrase: Operation no permitted
(pam_mount.c:522): mount of /dev/sda2 failed

 -- mags: /home/mags: change directory failed: No such file or directory
Logging in with home = "."/

I don't know what I did wrong or didn't yet do.

Last edited by maggie (2015-09-13 08:46:23)

Offline

#2 2015-09-11 19:42:57

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: Problems with PAM Mount and encrypted /home [solved]

Can I get some love? I still can't get this to work following the wiki instructions.

Offline

#3 2015-09-13 08:32:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Problems with PAM Mount and encrypted /home [solved]

Did you sync your luks password and your user password?  Post your:
/etc/pam.d/system-auth
/etc/security/pam_mount.conf.xml


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2015-09-13 08:46:09

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: Problems with PAM Mount and encrypted /home [solved]

Thank you! That was my problem!

Offline

Board footer

Powered by FluxBB