help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto login stopped working


From: Fredrik Salomonsson
Subject: Auto login stopped working
Date: Mon, 04 Nov 2024 04:29:43 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]