[Bug 1182554] New: cannot start greetd.service .... missing PAM module
https://bugzilla.suse.com/show_bug.cgi?id=1182554 Bug ID: 1182554 Summary: cannot start greetd.service .... missing PAM module Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Enhancement Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: mcepl@suse.com QA Contact: qa-bugs@suse.de CC: denis.kondratenko@suse.com, mcepl@suse.com, opensuse@trummer.xyz, stdden@opensuse.org Found By: --- Blocker: --- Created attachment 846366 --> https://bugzilla.suse.com/attachment.cgi?id=846366&action=edit journalctl -xb output When trying to replace gdm with greetd following the steps on https://en.opensuse.org/Portal:OpenSUSEway, greetd fails to start and journal shows: �no 22 09:38:10 stitny greetd[2347]: error: PAM 'greetd' service missing When looking around, there is the file /usr/etc/pam.d/greetd with this content: ~@stitny$ cat /usr/etc/pam.d/greetd #%PAM-1.0 auth requisite pam_nologin.so auth include common-auth account include common-account password include common-password session required pam_loginuid.so session optional pam_keyinit.so force revoke session include common-session ~@stitny$ but I have still /etc/pam.d/ as well and there is no greetd file. Which one is used? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182554
Matej Cepl
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c3
--- Comment #3 from Matej Cepl
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c5
--- Comment #5 from Matej Cepl
check what you have in config.toml, by default (if there is no openSUSEway) it has $TERM ... Tune config according to the system and greeter you want and it will work.
Default which comes with the package (no openSUSEway package): etc@stitny$ cat 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 `$SHELL` # with whatever you want started, such as `sway`. command = "agreety --cmd $SHELL" # 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" etc@stitny$ -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c6
--- Comment #6 from Matej Cepl
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c7
--- Comment #7 from Matej Cepl
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c9
--- Comment #9 from Matej Cepl
I also reported issue here, to maybe fix it in some future: https://github.com/openSUSE/openSUSEway/issues/37
Except that this is a bug in sway not openSUSEway, isn't it? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c11
Matej Cepl
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c13
--- Comment #13 from Matej Cepl
But I will check everything else later.
Thanks.
I have the same, but without label:
label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023"
Damn! I forgot! I have switched on SELinux, and I see in ausearch there are soem issues. I will take a look at it next week (I am on PTO for next three weeks).
Could you please share your config files in `/etc/greetd` ? Probably your script or command fails and greeter exits, or something...
stitny:~# for f in /etc/greetd/* ; do echo $f ; cat $f ; echo '===============' ; done /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 `$SHELL` # with whatever you want started, such as `sway`. # command = "sway --config /etc/greetd/sway-config" # 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" =============== /etc/greetd/config.toml.way [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 `$SHELL` # with whatever you want started, such as `sway`. # command = "sway --config /etc/greetd/sway-config" # 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" =============== /etc/greetd/environments sway-run.sh bash =============== /etc/greetd/sway-config exec "gtkgreet -l; swaymsg exit" bindsym Mod4+shift+e exec swaynag \ -t warning \ -m 'What do you want to do?' \ -b 'Poweroff' 'systemctl poweroff' \ -b 'Reboot' 'systemctl reboot' #include /etc/sway/config.d/* =============== stitny:~# I think it is untouched content of openSUSEway. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c15
--- Comment #15 from Matej Cepl
https://bugzilla.suse.com/show_bug.cgi?id=1182554
Johannes Segitz
https://bugzilla.suse.com/show_bug.cgi?id=1182554
Filippo Bonazzi
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c16
--- Comment #16 from Filippo Bonazzi
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c18
Matej Cepl
I still encounter the issue. In my case /usr/etc/pam.d/greetd did not exist - `rpm -ql greetd` revealed it is now /usr/lib/pam.d/greetd one has to symlink to /etc/pam.d.
stitny~$ rpm -qf /etc/pam.d/greetd greetd-0.8.0-36.53.x86_64 stitny~$ ???? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182554
https://bugzilla.suse.com/show_bug.cgi?id=1182554#c21
Georg Pfuetzenreuter
participants (1)
-
bugzilla_noreply@suse.com