~kennylevinsen/greetd

2 2

error: PAM 'greetd' service missing

rusty the hermit <rustythehermit@gmx.com>
Details
Message ID
<trinity-bb446d11-c7f7-4f14-82d9-5f20111a7984-1646652460139@3c-app-mailcom-bs13>
DKIM signature
missing
Download raw message
greetd does not work. no login promt shows on startup.

$ systemctl status greetd.service 
× greetd.service - Greeter daemon
     Loaded: loaded (/etc/systemd/system/greetd.service; enabled; vendor preset: disabled)
     Active: failed (Result: start-limit-hit) since Mon 2022-03-07 06:18:16 EST; 38s ago
    Process: 481 ExecStart=greetd (code=exited, status=0/SUCCESS)
   Main PID: 481 (code=exited, status=0/SUCCESS)

Mar 07 06:18:16 host systemd[1]: greetd.service: Scheduled restart job, restart counter is at 5.
Mar 07 06:18:16 host systemd[1]: Stopped Greeter daemon.
Mar 07 06:18:16 host systemd[1]: greetd.service: Start request repeated too quickly.
Mar 07 06:18:16 host systemd[1]: greetd.service: Failed with result 'start-limit-hit'.
Mar 07 06:18:16 host systemd[1]: Failed to start Greeter daemon.

$ greetd
error: PAM 'greetd' service missing

$ agreety
host login: user
error: environment variable not found

$ cat /etc/greetd/config.toml 
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT.
vt = 1

# The default session, also known as the greeter.
[default_session]

# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
# with whatever you want started, such as `sway`.
command = "agreety --cmd /bin/sh"

# The user to run the command as. The privileges this user must have depends
# on the greeter. A graphical greeter may for example require the user to be
# in the `video` group.
user = "greeter"

$ ls -l /etc/greetd/
total 4
-rw-r--r-- 1 root root 536 Mar  7 06:17 config.toml

$ file /etc/systemd/system/display-manager.service
/etc/systemd/system/display-manager.service: symbolic link to /etc/systemd/system/greetd.service

$ groups greeter
video greeter
Details
Message ID
<I8JD8R.B99WE3XMM9KD2@kl.wtf>
In-Reply-To
<trinity-bb446d11-c7f7-4f14-82d9-5f20111a7984-1646652460139@3c-app-mailcom-bs13> (view parent)
DKIM signature
pass
Download raw message
On Mon, Mar 7 2022 at 12:27:40 +0100, rusty the hermit 
<rustythehermit@gmx.com> wrote:
> $ greetd
> error: PAM 'greetd' service missing

You're lacking an /etc/pam.d/greetd PAM stack, so greetd can't start. 
You need to create one for greetd, otherwise PAM will not know how 
greetd login should work.

I'd normally say to copy /etc/pam.d/login, but greetd uses that as a 
fallback if it exists so that must be lacking as well.

> $ agreety
> host login: user
> error: environment variable not found

As agreety was not started by greetd, there is no greetd socket to talk 
to nor a GREETD_SOCK env var.
rusty the hermit <rustythehermit@gmx.com>
Details
Message ID
<trinity-d4160bf1-c69a-4d1f-80e5-9e963a9b209f-1646664987216@3c-app-mailcom-bs04>
In-Reply-To
<I8JD8R.B99WE3XMM9KD2@kl.wtf> (view parent)
DKIM signature
missing
Download raw message

> Sent: Monday, March 07, 2022 at 7:12 AM
> From: "Kenny Levinsen" <kl@kl.wtf>
> To: "rusty the hermit" <rustythehermit@gmx.com>
> Cc: ~kennylevinsen/greetd@lists.sr.ht
> Subject: Re: error: PAM 'greetd' service missing
>
> On Mon, Mar 7 2022 at 12:27:40 +0100, rusty the hermit
> <rustythehermit@gmx.com> wrote:
> > $ greetd
> > error: PAM 'greetd' service missing
>
> You're lacking an /etc/pam.d/greetd PAM stack, so greetd can't start.
> You need to create one for greetd, otherwise PAM will not know how
> greetd login should work.
>
> I'd normally say to copy /etc/pam.d/login, but greetd uses that as a
> fallback if it exists so that must be lacking as well.
>

i had pam.d in /usr/share. i copied login from there and now it works
fine.
thank you.
Reply to thread Export thread (mbox)