You are not logged in.

#1 2017-04-21 14:37:26

SirOibaf
Member
Registered: 2017-04-21
Posts: 6

[Solved] Gdm login loop with dm-crypt encrypted /home partition

Hi everyone,

I have a dm-crypt encrypted /home partition that should be mounted automatically when logging in with GDM as the passwords for the user (I have only one user) and to decrypt the partition are the same.
Everything was working fine till yesterday, however, since today I cannot log into my user from GDM anymore. GDM seems to accept the password, but then it returns to the initial state (the list of system users).

I didn't update neither the PAM package neither GDM.

I read the discussion https://wiki.archlinux.org/index.php/Ta … ing_script and applied the fixes, however they didn't solve the problem.

Before yesterday, I didn't have an entry for the /home partition in the /etc/fstab, however from https://wiki.archlinux.org/index.php/Dm … g_at_login it seems I should have one, so I added it. This resulted in GDM completely freezed and it didn't give me the possibility of inserting the password.

As a quick fix I log from another tty, open and mount the encrypted partition and then launch the gnome-session.

Some system details:
uname -a

Linux alfred 4.10.11-1-ARCH #1 SMP PREEMPT Tue Apr 18 08:39:42 CEST 2017 x86_64 GNU/Linux

/etc/pam.d/system-auth

#%PAM-1.0

auth      required  pam_env.so
auth      required  pam_unix.so     try_first_pass nullok
auth      optional  pam_mount.so     
auth      optional  pam_permit.so
auth      optional  pam_exec.so expose_authtok quiet /etc/pam_cryptsetup.sh 

account   required  pam_unix.so
account   optional  pam_permit.so
account   required  pam_time.so

password  optional  pam_mount.so
password  required  pam_unix.so     try_first_pass nullok sha512 shadow
password  optional  pam_permit.so

session   optional  pam_mount.so
session   required  pam_limits.so
session   required  pam_unix.so
session   optional  pam_permit.so
session   optional  pam_exec.so quiet /etc/pam_cryptsetup.sh 

/etc/fstab

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/nvme0n1p4
UUID=e900cd3b-7a46-41b0-942e-c0d8ab435b22	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/nvme0n1p1 LABEL=ESP
UUID=4844-7200      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

# SWAP
/swapfile none swap defaults 0 0

journalctl -u gdm -r

Apr 21 16:16:03 alfred gdm[356]: GdmDisplay: display lasted 0.188526 seconds
Apr 21 16:16:02 alfred gdm-password][597]: pam_unix(gdm-password:session): session opened for user fabio by (uid=0)
Apr 21 16:15:51 alfred systemd[1]: Started GNOME Display Manager.
Apr 21 16:15:51 alfred systemd[1]: Starting GNOME Display Manager...
-- Reboot --
Apr 21 16:15:29 alfred systemd[1]: Stopped GNOME Display Manager.
Apr 21 16:15:29 alfred systemd[1]: Stopping GNOME Display Manager...
Apr 21 16:09:32 alfred gdm[334]: GdmDisplay: display lasted 0.075421 seconds
Apr 21 16:09:32 alfred gdm-password][575]: pam_unix(gdm-password:session): session opened for user fabio by (uid=0)
Apr 21 16:09:17 alfred systemd[1]: Started GNOME Display Manager.
Apr 21 16:09:17 alfred systemd[1]: Starting GNOME Display Manager...
-- Reboot --
Apr 21 16:08:58 alfred systemd[1]: Stopped GNOME Display Manager.
Apr 21 16:08:58 alfred gdm[358]: GLib: g_hash_table_find: assertion 'version == hash_table->version' failed
Apr 21 16:08:57 alfred gdm[358]: GdmLocalDisplayFactory: Failed to issue method call: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Apr 21 16:08:57 alfred gdm-launch-environment][12421]: AccountsService: Failed to create accounts proxy: Error calling StartServiceByName for org.freedesktop.Accounts: GDBus.Error:org.freedesktop.systemd1.ShuttingDown: Refusing activation
Apr 21 16:08:57 alfred gdm[358]: Failed to contact accountsservice: Error calling StartServiceByName for org.freedesktop.Accounts: GDBus.Error:org.freedesktop.systemd1.ShuttingDown: Refusing activation, D-Bus is shutting down.
Apr 21 16:08:55 alfred systemd[1]: Stopping GNOME Display Manager...
Apr 21 16:08:55 alfred gdm[358]: Freeing conversation 'gdm-launch-environment' with active job
Apr 21 16:08:55 alfred gdm[358]: Tried to look up non-existent conversation gdm-launch-environment
Apr 21 10:46:11 alfred gdm[358]: GdmDisplay: display lasted 0.076718 seconds
Apr 21 10:46:11 alfred gdm-password][671]: pam_unix(gdm-password:session): session opened for user fabio by (uid=0)
Apr 21 10:45:56 alfred systemd[1]: Started GNOME Display Manager.
Apr 21 10:45:56 alfred systemd[1]: Starting GNOME Display Manager...

Do you have any ideas on how to get GDM working again?

Thanks

Last edited by SirOibaf (2017-04-21 21:15:44)

Offline

#2 2017-04-21 18:50:43

SirOibaf
Member
Registered: 2017-04-21
Posts: 6

Re: [Solved] Gdm login loop with dm-crypt encrypted /home partition

Ok. I messed up badly with the configuration. I cleaned everything up and now it works.

Offline

#3 2017-04-21 21:14:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [Solved] Gdm login loop with dm-crypt encrypted /home partition

Please always mark a thread as solved once you're happy with the resolution of your issue. Thanks.

Offline

Board footer

Powered by FluxBB