* Auto login stopped working
@ 2024-11-04 4:29 Fredrik Salomonsson
2024-11-05 17:43 ` Rutherther
0 siblings, 1 reply; 3+ messages in thread
From: Fredrik Salomonsson @ 2024-11-04 4:29 UTC (permalink / raw)
To: help-guix
Hi Guix,
A few weeks back the auto-login for my media machine stopped working. I
can still login fine with the user — `htpc`. I've been scratching my
head on what could be the issue. I followed the suggestion in the cookbook:
```
;; From cookbook [0]
;; [0] https://guix.gnu.org/cookbook/en/html_node/Auto_002dLogin-to-a-Specific-TTY.html
(define (auto-login-to-tty config tty user)
(if (string=? tty (mingetty-configuration-tty config))
(mingetty-configuration
(inherit config)
(auto-login user))
config))
(modify-services
%plt-base-services
(mingetty-service-type
config => (auto-login-to-tty
config "tty3" "htpc")))
```
Checking the `/var/log/secure` all I see is:
```
Nov 2 13:03:16 localhost login[269]: pam_elogind(login:session): Failed to connect to system bus: No such file or directory
Nov 2 13:03:16 localhost login[269]: pam_unix(login:session): session opened for user htpc(uid=1010) by LOGIN(uid=0)
Nov 2 13:03:16 localhost login[269]: Error in service module
```
elogind and dbus-system is running, and it works fine if I manually
login on another tty, tty3 just shows the `Error in service module`
message. Anyone know what could be the issue?
Thanks
--
s/Fred[re]+i[ck]+/Fredrik/g
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Auto login stopped working
2024-11-04 4:29 Auto login stopped working Fredrik Salomonsson
@ 2024-11-05 17:43 ` Rutherther
2024-11-05 23:50 ` Fredrik Salomonsson
0 siblings, 1 reply; 3+ messages in thread
From: Rutherther @ 2024-11-05 17:43 UTC (permalink / raw)
To: help-guix; +Cc: Fredrik Salomonsson
> elogind and dbus-system is running, and it works fine if I manually
> login on another tty, tty3 just shows the `Error in service module`
> message. Anyone know what could be the issue?
Hello Fredrik,
I don't know what the cause is, but I was able to get around it
by setting (login-pause? #t). This means I have to hit enter to log in,
but I personally actually prefer that. If this is not for you, I don't have
any more pointers unfortunately.
Regards,
Rutherther
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Auto login stopped working
2024-11-05 17:43 ` Rutherther
@ 2024-11-05 23:50 ` Fredrik Salomonsson
0 siblings, 0 replies; 3+ messages in thread
From: Fredrik Salomonsson @ 2024-11-05 23:50 UTC (permalink / raw)
To: Rutherther, help-guix
Hi,
Rutherther <rutherther@ditigal.xyz> writes:
>> elogind and dbus-system is running, and it works fine if I manually
>> login on another tty, tty3 just shows the `Error in service module`
>> message. Anyone know what could be the issue?
>
> Hello Fredrik,
>
> I don't know what the cause is, but I was able to get around it
> by setting (login-pause? #t). This means I have to hit enter to log in,
> but I personally actually prefer that. If this is not for you, I don't have
> any more pointers unfortunately.
That might be a good clue, as
Felix Lechner <felix.lechner@lease-up.com> writes:
> Based on the log messages, it seems pam_elogind.so cannot connect to
> Dbus ("No such file or directory") and leaves the authentication token
> uninitialized, which causes an error in pam_unix.so.
So it sounds like it's failing to login due to dbus is not there. I can
login normally with that user on a different tty and you — Rutherther —
can login if pausing the login. Which means that dbus should be there
by then. I wonder if there is a race condition and it is trying to
login before everything is setup, which would explain why it works when
pausing the login.
I'll do some investigation this weekend to see if I can get any the
wiser on what's going on. And good to know that there is a workaround
with (login-pause? #t).
Thanks!
--
s/Fred[re]+i[ck]+/Fredrik/g
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-05 23:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-04 4:29 Auto login stopped working Fredrik Salomonsson
2024-11-05 17:43 ` Rutherther
2024-11-05 23:50 ` Fredrik Salomonsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).