Auto-login prevents GDM from starting

  • Done
  • quality assurance status badge
Details
4 participants
  • Alex Griffin
  • Leo Famulari
  • Pierre Neidhardt
  • Marius Bakke
Owner
unassigned
Submitted by
Pierre Neidhardt
Severity
normal
Merged with
P
P
Pierre Neidhardt wrote on 3 Apr 2020 18:54
(address . bug-guix@gnu.org)
878sjcse6r.fsf@ambrevar.xyz
With the following GDM service:

Toggle snippet (6 lines)
(gdm-service-type
(gdm-configuration
(default-user "doe")
(auto-login? #t)))

GDM fails to start (nothing happens, nothing is printed in the TTY).

If I set auto-login? to #f, GDM starts properly (but of course does not
log me in automatically).

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6HaiwACgkQm9z0l6S7
zH9sjwgAkd7scsZGKxowwZ62V+w93LuZDA7d7HxrDmpUzNkrG3lNNO0RXTJSgM8L
BUIQwYQXgPL3yW/ANXCNZupr2U0o2ApiIn47iidG4aqEcGYVzToXqCvZjgGOFSyq
REMtnO/bFZAWsLf5YYSSfGnDCaoJwzkNfrN56u5Hg1v8pQSNXKYy79FOSN17eUSB
fxzJBK54JCn3sARwQQpH9NmHunb9Llj+Srx3wyLOsMbaRuQ10yk/+M7HTnd/e94+
gUCYTMZIu9YmdvdeQrC7ioIMPvOycKyxHdqbiVlKGuVqHcU0zB8If5Zq+F+otsyY
dRqqauayN7pMBIr2QnWp8BlQ/zKOsg==
=8q/u
-----END PGP SIGNATURE-----

P
P
Pierre Neidhardt wrote on 3 Apr 2020 18:58
Re: bug#40411: Acknowledgement (Auto-login prevents GDM from starting)
(address . 40411@debbugs.gnu.org)
875zegsdz1.fsf@ambrevar.xyz
Oops, I did look for similar issues and somehow I missed
which seems to be very similar to what Alex is experiencing.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6Ha0IACgkQm9z0l6S7
zH9/sAf/Yz/jvfCP7phAptXgwcdla2Q1sq4rLweQF0GmKDy3UPwa42Ok298wg9yl
FMaNV+hReiAP9MhhTanSK7jTqyHu0wcSIrqcBkMLWSwiwBXKd2XgKekiTLvtDm/+
ywv/djny88GUXOsSVlI/3zuJ89cSNWXp+bP8mdQYBqPJalYWSK2CUrh/WA1ljeId
cx9VhtRasqtW4CM42uh4Ypit6Cb6rNj9GifqsGs4RfBVea3z1MrpojNfJLRwR/dc
9AIUF1bmXuwlYm9OLxF/2KFRDC3Ox7lLy7H1/oPahp2SbieyRYwgYapkYi1LfwZw
bJ/ggY9j4/1PGgNgxJr6RSLYQWt1aQ==
=2aox
-----END PGP SIGNATURE-----

L
L
Leo Famulari wrote on 3 Apr 2020 19:22
(name . Pierre Neidhardt)(address . mail@ambrevar.xyz)(address . 40411@debbugs.gnu.org)
20200403172225.GA7338@jasmine.lan
On Fri, Apr 03, 2020 at 06:58:42PM +0200, Pierre Neidhardt wrote:
Toggle quote (4 lines)
> Oops, I did look for similar issues and somehow I missed
> https://issues.guix.info/issue/35674
> which seems to be very similar to what Alex is experiencing.

If appropriate, please merge the bugs :)
P
P
Pierre Neidhardt wrote on 3 Apr 2020 20:26
(name . Leo Famulari)(address . leo@famulari.name)(address . 40411@debbugs.gnu.org)
871rp4s9wl.fsf@ambrevar.xyz
Done.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6Hf9oACgkQm9z0l6S7
zH9GfQf/S8cjy3TPQfKemkT6AA9QaX42rCTTlHAsPxx8pWUlt5u4D0Yv4ZJZTp73
QWa63egk84lZApwLat69byEyHIsxyyTVrud6zgSv4K3Xx904WlrfWmKpdBPhUC5t
7CjG3Z9r5Y3WZmjYTs+QcZJCcn6D7dN8KRQDmXI/+2FqyqPXpaEziUkp3yMYq3JQ
YXiARbH1UkPXujitBS5D8AywJTYJgblOwTSysgMEm77Gn5wfNjeLT89Sw7vJhcMA
lGo8+2RMsY+qg2IuKo8iUt1FF0zLE15BL02m8oKKr2B6KzSAb0lMy/tBO3j/d7Zv
Lk3BLTEzL5H92jbHg83pUzT+/myt1Q==
=kHFd
-----END PGP SIGNATURE-----

P
P
Pierre Neidhardt wrote on 3 Apr 2020 20:26
control message for bug #40411
(address . control@debbugs.gnu.org)
87369ks9xc.fsf@ambrevar.xyz
merge 40411 35674
quit
A
A
Alex Griffin wrote on 15 Jun 2020 01:24
[PATCH] services: Fix gdm-autologin pam service.
(name . guix-patches@gnu.org)(address . guix-patches@gnu.org)
-CkK6xCmE4SCUTOS1nupxqCONmgZkMEUjRUNRiBXxpuT9bRhVj74k6fTGlkQg4xu8r6BAWNhSpod7a0vH4ufBiNT1GR_fxHbc0U5Vqr-xMw=@ajgrf.com
This patch fixes GDM's auto-login feature.

See the discussions in #35674 and #40411. It works for me, but I don't want to just commit it because I don't really understand PAM. (Then again, who does?)

--
Alex Griffin
From 2d07fab70a4051189e013a20a95cfbb08c904803 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sun, 14 Jun 2020 17:58:47 -0500
Subject: [PATCH] services: Fix gdm-autologin pam service.

* gnu/services/xorg.scm (gdm-pam-service): Mark pam_gdm.so optional.
---
gnu/services/xorg.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Toggle diff (23 lines)
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index ca39994516..4590709187 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2019 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
;;; Copyright © 2020 shtwzrd <shtwzrd@protonmail.com>
;;; Copyright © 2020 Jakub K?dzio?ka <kuba@kadziolka.net>
+;;; Copyright © 2020 Alex Griffin <a@ajgrf.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -925,7 +926,7 @@ the GNOME desktop environment.")
(inherit (unix-pam-service "gdm-autologin"
#:login-uid? #t))
(auth (list (pam-entry
- (control "[success=ok default=1]")
+ (control "optional")
(module (file-append (gdm-configuration-gdm config)
"/lib/security/pam_gdm.so")))
(pam-entry
--
2.26.2
M
M
Marius Bakke wrote on 2 Oct 2020 19:54
875z7sh5t7.fsf@gnu.org
Alex Griffin via Guix-patches via <guix-patches@gnu.org> writes:

Toggle quote (4 lines)
> This patch fixes GDM's auto-login feature.
>
> See the discussions in #35674 and #40411. It works for me, but I don't want to just commit it because I don't really understand PAM. (Then again, who does?)

[...]

Toggle quote (7 lines)
> @@ -925,7 +926,7 @@ the GNOME desktop environment.")
> (inherit (unix-pam-service "gdm-autologin"
> #:login-uid? #t))
> (auth (list (pam-entry
> - (control "[success=ok default=1]")
> + (control "optional")

This is one of the alternatives Timothy proposed in #35674 back in May
last year(!). As long as GDM still rejects wrong or blank passwords, I
think it is good to go.

It would be good to get it in 1.2.0. :-)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl93aVQACgkQoqBt8qM6
VPqRHggArQUeDOH1f44wmrz/vDGIKmHgC2OK0/+u35Z0ucRyV8g1qoHnL/qePRlD
CFIYE9P5DTeC+UZ7ndyJF072cRJS3rLYBSHS/oOWbjrHhF29XarYhGtyoYKapUyA
0W36+56x1Fm7d5HCB6sTZFPcyceMYNXF3292296v+n3iIebqIv2LcA83LWNXefEj
Rayuf1BHoF09ywvV8gk/JaBiZXRzrJt8NOgfRQlUtu4Q+y/MSgA4coSbclKZvuSX
2KtQRYilgSyY633aeQKEp3ylWEbxRuwKa6SJ2aIWmfYlIUMmez+De1DgJq4Z8W7J
rl41R6bO8uJsYk8Dur99U2cwv0yoqg==
=R2ue
-----END PGP SIGNATURE-----

A
A
Alex Griffin wrote on 18 Feb 2022 17:27
control message for bug #35674
(address . control@debbugs.gnu.org)
87o834w35j.fsf@ajgrf.com
close 35674
close 40411
quit
?