Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User password will not unlock screensaver #412

Open
mmcelroy75 opened this issue Aug 9, 2022 · 31 comments
Open

User password will not unlock screensaver #412

mmcelroy75 opened this issue Aug 9, 2022 · 31 comments

Comments

@mmcelroy75
Copy link

mmcelroy75 commented Aug 9, 2022

 * Cinnamon-Screensaver version 5.4.2
 * Distribution - (ArcoLInux/Arch - 5.15.59-2-lts kernel)
 * Graphics hardware *and* driver used - Advanced Micro Devices, Inc. [AMD/ATI] Cezanne
 * 64 bit

Issue

When attempting to unlock the computer from being in screensaver, sometimes entering the password will not work and the computer will not unlock. The screensaver will behave as if an incorrect or mistyped password has been entered and it will continually prompt to reenter.

If the icon with two figures is clicked to exit to the main session login screen, the password will not work there either.

Getting back in requires the computer to be rebooted.

This doesn't happen on every time that cinnamon-screensaver is run, but it does happen regularly.

Steps to reproduce

Either lock screen with Ctrl-Alt-L or let the computer idle and screensaver will start and computer will lock itself.

Expected behaviour

The password should unlock the screensaver, allowing the user to resume the session.

@mtwebster
Copy link
Member

Since it happens in the screensaver as well as the session login, it seems like it may be some sort of keyboard layout issue.

Do you have more than one keyboard layout installed? If so, there should be a flag icon in the password entry in the screensaver. Make sure the correct layout is selected before typing your password.

@mmcelroy75
Copy link
Author

I do not have more than one keyboard layout installed. Only the American English one. There is no flag icon on my screensaver or session login page.

@0x7969
Copy link

0x7969 commented Aug 9, 2022

I'm glad I'm not the only one. Just spent an hour tracking this down without success yet. I'm on Arch aswell (5.18.16-arch1-1) Could be PAM related. Relevant parts of my kernel log:

Aug 09 10:46:54 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.707' (uid=1000 pid=41346 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:46:54 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:46:54 my-hostname cinnamon-screensaver-pam-helper[41346]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:46:54 my-hostname cinnamon-screensaver-pam-helper[41287]: pam_unix(cinnamon-screensaver:auth): conversation failed
Aug 09 10:46:54 my-hostname cinnamon-screensaver-pam-helper[41287]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
Aug 09 10:46:54 my-hostname audit[41365]: USER_AUTH pid=41365 uid=1000 auid=1000 ses=3 msg='op=PAM:unix_chkpwd acct="my-user-name" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=failed'
Aug 09 10:46:54 my-hostname unix_chkpwd[41365]: password check failed for user (my-user-name)
Aug 09 10:46:54 my-hostname cinnamon-screensaver-pam-helper[41346]: pam_unix(cinnamon-screensaver:auth): authentication failure; logname= uid=1000 euid=1000 tty=:0 ruser= rhost=  user=my-user-name
Aug 09 10:46:54 my-hostname kernel: audit: type=1100 audit(1660034814.666:186): pid=41365 uid=1000 auid=1000 ses=3 msg='op=PAM:unix_chkpwd acct="my-user-name" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=failed'
Aug 09 10:46:56 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.708' (uid=1000 pid=41346 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:46:56 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:46:56 my-hostname cinnamon-screensaver-pam-helper[41346]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:47:26 my-hostname cinnamon-screensaver-pam-helper[41346]: pam_unix(cinnamon-screensaver:auth): conversation failed
Aug 09 10:47:26 my-hostname cinnamon-screensaver-pam-helper[41346]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
Aug 09 10:47:26 my-hostname cinnamon-screensaver-pam-helper[41346]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user my-user-name account temporarily locked
Aug 09 10:48:30 my-hostname cinnamon-screensaver-pam-helper[41415]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:30 my-hostname cinnamon-screensaver-pam-helper[41415]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:30 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.709' (uid=1000 pid=41415 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:48:30 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:30 my-hostname cinnamon-screensaver-pam-helper[41415]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41415]: pam_unix(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41415]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41429]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41429]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:40 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.710' (uid=1000 pid=41429 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:48:40 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41429]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41437]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41437]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:48:40 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.711' (uid=1000 pid=41437 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:48:40 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:40 my-hostname cinnamon-screensaver-pam-helper[41437]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:43 my-hostname systemd[1]: Started Getty on tty3.
Aug 09 10:48:43 my-hostname audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 09 10:48:43 my-hostname kernel: audit: type=1130 audit(1660034923.459:187): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 09 10:48:45 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.712' (uid=0 pid=41458 comm="/bin/login -p --   ")
Aug 09 10:48:45 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:45 my-hostname login[41458]: pam_systemd_home(login:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:48:59 my-hostname systemd[1]: Started Getty on tty2.
Aug 09 10:48:59 my-hostname audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 09 10:48:59 my-hostname kernel: audit: type=1130 audit(1660034939.796:188): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 09 10:49:04 my-hostname cinnamon-screensaver-pam-helper[41471]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:49:04 my-hostname cinnamon-screensaver-pam-helper[41471]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Aug 09 10:49:04 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.714' (uid=1000 pid=41471 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:49:04 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:49:04 my-hostname cinnamon-screensaver-pam-helper[41471]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Aug 09 10:49:04 my-hostname cinnamon-screensaver-pam-helper[41437]: pam_unix(cinnamon-screensaver:auth): conversation failed
Aug 09 10:49:04 my-hostname cinnamon-screensaver-pam-helper[41437]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
Aug 09 10:49:07 my-hostname audit[41484]: USER_AUTH pid=41484 uid=1000 auid=1000 ses=3 msg='op=PAM:unix_chkpwd acct="my-user-name" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
Aug 09 10:49:07 my-hostname cinnamon-screensaver-pam-helper[41471]: gkr-pam: unlocked login keyring
Aug 09 10:49:07 my-hostname kernel: audit: type=1100 audit(1660034947.679:189): pid=41484 uid=1000 auid=1000 ses=3 msg='op=PAM:unix_chkpwd acct="my-user-name" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
Aug 09 10:49:09 my-hostname dbus-daemon[466]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.715' (uid=1000 pid=41471 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Aug 09 10:49:09 my-hostname dbus-daemon[466]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.

(Sorry for the homed-spam, I left it in because I'm not sure if it might be related.)
For me it only happened twice, both times after suspend. Both times the screensaver somehow locked me out (as if I had already typed my password wrong three times) immediately but didn't tell me so. I could reenter my password (without success) again and again in cinnamon-screensaver. When I tried logging into a TTY though, I noticed that I was on the banlist already after one try via cinnamon-screensaver. Very weird.
I'll update this if I find more time to further look into it.

Oh btw my password works the same on english and german keyboard layouts (the only once I have installed), so I guess it's not that.

Edit: Could it be related to #209 ?

@mtwebster
Copy link
Member

Can you run cinnamon-screensaver from a terminal:

cinnamon-screensaver --debug --hold

then try to reproduce (or allow it to randomly).

Please paste the output here (in a text file) once you do.

Thanks

@mmcelroy75
Copy link
Author

In what directory can I find the output of that command?

@mtwebster
Copy link
Member

Actually this seems like it may be limited to Arch and friends...

Can you try this?
https://forum.manjaro.org/t/dbus-org-freedesktop-home1-service-not-found-i-set-noextract-usr-lib-security-pam-systemd-home-so-in-pacman-conf/77365

There are a few other 'fixes' I've seen but this won't won't lock you out of your system if you make a mistake.

https://bbs.archlinux.org/viewtopic.php?id=258297
https://bbs.archlinux.org/viewtopic.php?id=258489
...

Is it possible either of you has a modified /etc/pam.d/system-auth (or other files in that directory) that you've been hanging onto? This issue seems to be a year or more old, so I would have thought it would be a non-issue by now.

Maybe you edited things to add a fingerprint reader or other additional authentication module?

@mtwebster
Copy link
Member

The output will be in the terminal your ran that command from. But I'm not sure it's necessary now since my most recent post here.

@mmcelroy75
Copy link
Author

To answer question, I hadn't done any modifications to /etc/pam.d/system-auth or any files in that directory.

Regarding the fix, should the entry to /etc/pacman.conf have a leading forward slash?

NoExtract = /usr/lib/security/pam_systemd_home.so

The line listed on the manjaro page omits it.

@mtwebster
Copy link
Member

No leading slash

https://archlinux.org/pacman/pacman.conf.5.html

@BillyDM
Copy link

BillyDM commented Aug 24, 2022

I'm having this problem too in Manjaro Cinnamon. I tried the above fix, but it did not work.

@gkatev
Copy link

gkatev commented Oct 7, 2022

I've also been hitting this. I'm also on Arch Linux, don't know if the problem is something there or with cinnamon screensaver. I was able to reproduce it while capturing debug output using the command above by @mtwebster. It's possible that it's happenning for me after resuming from suspend, I don't fully remember if this was always the case.

I opened the laptop, and attempted to enter the password. I'm not fully certain that I entered it correctly the first time, but I did not make more than 3 attempts, and I have fail-lock configured for 5. I switched to another TTY and tried to login there, and saw the message "The account is locked due to 5 failed logins". I finally bypassed it via ssh (DISPLAY=:0 cinnamon-screensaver-command -d, for anyone that might need it) instead of waiting.

The output of cinnamon-screensaver-pam-helper in the journal:

Oct 07 15:50:29 gklp cinnamon-screensaver-pam-helper[646691]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:50:29 gklp cinnamon-screensaver-pam-helper[646691]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]
Oct 07 15:51:04 gklp cinnamon-screensaver-pam-helper[646920]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:04 gklp cinnamon-screensaver-pam-helper[646920]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]
Oct 07 15:51:05 gklp cinnamon-screensaver-pam-helper[647982]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:05 gklp cinnamon-screensaver-pam-helper[647982]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]
Oct 07 15:51:14 gklp cinnamon-screensaver-pam-helper[648191]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:14 gklp cinnamon-screensaver-pam-helper[648191]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]
Oct 07 15:51:20 gklp cinnamon-screensaver-pam-helper[648520]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:20 gklp cinnamon-screensaver-pam-helper[648520]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]
Oct 07 15:51:20 gklp cinnamon-screensaver-pam-helper[648520]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user gkatev account temporarily locked
Oct 07 15:51:20 gklp cinnamon-screensaver-pam-helper[648641]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:20 gklp cinnamon-screensaver-pam-helper[648641]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:23 gklp cinnamon-screensaver-pam-helper[648641]: gkr-pam: unlocked login keyring
Oct 07 15:51:25 gklp cinnamon-screensaver-pam-helper[648641]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:25 gklp cinnamon-screensaver-pam-helper[648641]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:30 gklp cinnamon-screensaver-pam-helper[648641]: gkr-pam: unlocked login keyring
Oct 07 15:51:32 gklp cinnamon-screensaver-pam-helper[648641]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:32 gklp cinnamon-screensaver-pam-helper[648641]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:42 gklp cinnamon-screensaver-pam-helper[648641]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:42 gklp cinnamon-screensaver-pam-helper[648641]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]
Oct 07 15:51:42 gklp cinnamon-screensaver-pam-helper[648992]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:42 gklp cinnamon-screensaver-pam-helper[648992]: pam_faillock(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:59 gklp cinnamon-screensaver-pam-helper[648992]: pam_unix(cinnamon-screensaver:auth): conversation failed
Oct 07 15:51:59 gklp cinnamon-screensaver-pam-helper[648992]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [gkatev]

Debug output: cinnamon-screensaver-debug.log
(cinnamon-screensaver --debug --hold 2>&1 | while read msg; do echo "$(date): $msg"; done | tee cinnamon-screensaver-debug.log)

@t3pfaffe
Copy link

t3pfaffe commented Nov 1, 2022

Still having this issue with Cinnamon 5.4.12 on 6.0.2-arch1-1.

@ioquatix
Copy link

I found out the root cause, or at least how to reproduce it.

Having faillock set with non-zero deny.

e.g. /etc/security/faillock.conf

deny = 10

Then, simply lock the screen, press any button to show the password entry box, and then press escape to close it. Repeat that more than 10 times, and you will be locked out.

It appears there are multiple ways this could happen - spurious wakeup etc.

Dec 12 14:09:09 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.227' (uid=1000 pid=35801 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:09 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:09 aiko cinnamon-screensaver-pam-helper[35801]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:10 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.228' (uid=1000 pid=35806 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:10 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:10 aiko cinnamon-screensaver-pam-helper[35806]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:10 aiko cinnamon-screensaver-pam-helper[35801]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:10 aiko cinnamon-screensaver-pam-helper[35801]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:11 aiko cinnamon-screensaver-pam-helper[35806]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:11 aiko cinnamon-screensaver-pam-helper[35806]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:11 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.229' (uid=1000 pid=35811 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:11 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:11 aiko cinnamon-screensaver-pam-helper[35811]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:11 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.230' (uid=1000 pid=35816 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:11 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:11 aiko cinnamon-screensaver-pam-helper[35816]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:11 aiko cinnamon-screensaver-pam-helper[35811]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:11 aiko cinnamon-screensaver-pam-helper[35811]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.231' (uid=1000 pid=35821 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35821]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35816]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35816]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.232' (uid=1000 pid=35826 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35826]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35821]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35821]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.233' (uid=1000 pid=35831 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35831]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35826]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35826]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.234' (uid=1000 pid=35836 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:12 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35836]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35831]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:12 aiko cinnamon-screensaver-pam-helper[35831]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:13 aiko dbus-daemon[800]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.235' (uid=1000 pid=35841 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
Dec 12 14:09:13 aiko dbus-daemon[800]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:13 aiko cinnamon-screensaver-pam-helper[35841]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Dec 12 14:09:13 aiko cinnamon-screensaver-pam-helper[35836]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:13 aiko cinnamon-screensaver-pam-helper[35836]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:13 aiko cinnamon-screensaver-pam-helper[35841]: pam_unix(cinnamon-screensaver:auth): conversation failed
Dec 12 14:09:13 aiko cinnamon-screensaver-pam-helper[35841]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [samuel]
Dec 12 14:09:14 aiko cinnamon-screensaver-pam-helper[35846]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user samuel account temporarily locked

I don't know what the fix is, but a user simply triggering the password entry to show (e.g. tapping a button on the keyboard to wake up a display) counts as a failed login attempt, which seems wrong to me.

I don't know if this also relates to systemd-home but it also shows up.

@KeveNagy
Copy link

KeveNagy commented Jan 4, 2023

Occurs on FreeBSD 13.1-Release with Cinnamon 4.8.6_3, cinnamon-screensaver 4.8.1_2. Once kicked in, the screenlock cannot be unlocked. Refuses every attempt, including the correct password. Same if I manually start screenlock.
No custom security/pam/whatever changes, everything is installed and left on factory/package defaults.

@broozar
Copy link

broozar commented Mar 8, 2023

I am having the same issue on FreeBSD 13.1 as @KeveNagy. Same versions of Cinnamon and screensaver.

@ajgringo619
Copy link

EndeavourOS, kernel 6.2.10, Cinnamon 5.6.8

This happens repeatedly when coming out of suspend, but never when just locking the screen manually.

@onetimehelper
Copy link

I'm also having this issue. See my replies, but basically:

ArchLinux through EndeavourOS, cinnamon 5.6.8-2, monitor: SAMSUNG S95B OLED TV (connected through a brand name HDMI 2.1 (48 Gbit/s) certified cable, no usage of adapters or such) (but I remember it also happening with my prior 27" 1440p IPS PC monitor, connected through DisplayPort). Happens every time I turn on the cinnamon-screensaver, turn off the TV using its remote and come back after being idle for at least 10 minutes.

sudo journalctl -b -1:

:33:06   dbus-daemon[1195]: [session uid=1000 pid=1195] Activating service name='org.cinnamon.ScreenSaver' requested by ':1.147' (uid=1000 pid=3971 comm="/usr/bin/python3 /usr/bin/cinnamon-screensaver-com")
:33:06   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:06   org.cinnamon.ScreenSaver[3978]: Trying to connect to logind...
:33:06   dbus-daemon[1195]: [session uid=1000 pid=1195] Successfully activated service 'org.cinnamon.ScreenSaver'
:33:06   org.cinnamon.ScreenSaver[3978]: Starting screensaver...
:33:06   org.cinnamon.ScreenSaver[3978]: Cinnamon Screensaver support not found in current theme - adding some...
:33:06   cinnamon-session[1184]: WARNING: t+1535,09163s: Detected that screensaver has appeared on the bus
:33:06   org.cinnamon.ScreenSaver[3978]: Successfully using logind
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:33:35   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:35   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:33:36   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:33:36   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:33:36   rtkit-daemon[1278]: Supervising 6 threads of 3 processes of 1 users.
:33:36   rtkit-daemon[1278]: Successfully made thread 4033 of process 1243 owned by '1000' RT at priority 5.
:33:36   rtkit-daemon[1278]: Supervising 7 threads of 3 processes of 1 users.
:33:36   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:36   cinnamon-screensaver-pam-helper[4009]: pam_unix(cinnamon-screensaver:auth): conversation failed
:33:36   cinnamon-screensaver-pam-helper[4009]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:34:06   cinnamon-screensaver-pam-helper[4036]: pam_unix(cinnamon-screensaver:auth): conversation failed
:34:06   cinnamon-screensaver-pam-helper[4036]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:35:52   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:35:52   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:35:53   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:35:53   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:35:53   rtkit-daemon[1278]: Supervising 6 threads of 3 processes of 1 users.
:35:53   rtkit-daemon[1278]: Successfully made thread 4122 of process 1243 owned by '1000' RT at priority 5.
:35:53   rtkit-daemon[1278]: Supervising 7 threads of 3 processes of 1 users.
:35:54   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:35:54   cinnamon-screensaver-pam-helper[4111]: pam_unix(cinnamon-screensaver:auth): conversation failed
:35:54   cinnamon-screensaver-pam-helper[4111]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:35:54   cinnamon-screensaver-pam-helper[4111]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user .. account temporarily locked

Let me know if you need me to test something.

@snomics
Copy link

snomics commented Jun 10, 2023

Is there any progress on the issue ? 
I experience the same behavior on Manjaro (with default config) and can provide logs if requested.

@wilbq
Copy link

wilbq commented Jul 13, 2023

I had the same problem with Arch Linux + Cinnamon.
After I removed my Linux account from 'wheel' group, it never occurred again.
Hope this can help someone to find the exact reason.

@onetimehelper
Copy link

After a new PC build (7800X3D+4070 (from 6600XT)) and a fresh Endeavouros_Cassini_Nova-03-2023_R3 (third rebuild) install, I can confirm that this issue is still happening.

To reproduce: Lock screen (Strg+Alt+l), turn off Samsung OLED S95B TV (connected through a normal certified UHD HDMI 2.1<->HDMI 2.1 cable), return after 10 minutes, turn on TV and try to log-in.

sudo journalctl -b -1
[..]
   hh:07:33   dbus-daemon[1087]: [session uid=1000 pid=1087] Activating service name='org.gnome.ScreenSaver' requested by ':1.79' (uid=1000 pid=1995 comm="/usr/lib/xdg-desktop-portal-gtk")
   hh:07:33   dbus-daemon[1087]: [session uid=1000 pid=1087] Successfully activated service 'org.gnome.ScreenSaver'
   hh:07:33   dbus-daemon[1087]: [session uid=1000 pid=1087] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
   hh:07:33   systemd[1071]: Started Portal service (GTK/GNOME implementation).
   hh:08:38   systemd[1071]: xdg-desktop-portal.service: start operation timed out. Terminating.
   hh:08:38   systemd[1071]: xdg-desktop-portal.service: Failed with result 'timeout'.
   hh:08:38   systemd[1071]: Failed to start Portal service.
   hh:09:08   dbus-daemon[1087]: [session uid=1000 pid=1087] Failed to activate service 'org.freedesktop.portal.Desktop': timed out (service_start_timeout=120000ms)
   hh:09:08   dbus-daemon[1087]: [session uid=1000 pid=1087] Failed to activate service 'org.freedesktop.impl.portal.desktop.gnome': timed out (service_start_timeout=120000ms)
   hh:10:12   systemd[1071]: Started Run xinput set-prop service.
   hh:14:12   systemd[1071]: Started Run xinput set-prop service.
   hh:16:01   dbus-daemon[812]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.70' (uid=1000 pid=2045 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
   hh:16:01   dbus-daemon[812]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
   hh:16:02   dbus-daemon[812]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.71' (uid=1000 pid=2079 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
   hh:16:02   dbus-daemon[812]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
   hh:16:03   cinnamon-screensaver-pam-helper[2045]: pam_unix(cinnamon-screensaver:auth): conversation failed
   hh:16:03   cinnamon-screensaver-pam-helper[2045]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
   hh:16:03   dbus-daemon[1087]: [session uid=1000 pid=1087] Activating service name='org.cinnamon.CalendarServer' requested by ':1.39' (uid=1000 pid=1332 comm="cinnamon --replace")
   hh:16:03   dbus-daemon[812]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.73' (uid=1000 pid=2109 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
   hh:16:03   dbus-daemon[812]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
   hh:16:03   dbus-daemon[1087]: [session uid=1000 pid=1087] Successfully activated service 'org.cinnamon.CalendarServer'
   hh:16:03   cinnamon-screensaver-pam-helper[2079]: pam_unix(cinnamon-screensaver:auth): conversation failed
   hh:16:03   cinnamon-screensaver-pam-helper[2079]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
   hh:16:23   org.cinnamon.CalendarServer[2105]: SET TIME: **
   hh:16:23   org.cinnamon.CalendarServer[2105]: Discovered calendar:  **
   hh:16:23   org.cinnamon.CalendarServer[2105]: Discovered calendar:  **
   hh:16:23   org.cinnamon.CalendarServer[2105]: SET TIME: **
   hh:16:23   org.cinnamon.CalendarServer[2105]: get view failed:  **
   hh:16:33   cinnamon-screensaver-pam-helper[2109]: pam_unix(cinnamon-screensaver:auth): conversation failed
   hh:16:33   cinnamon-screensaver-pam-helper[2109]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [my-user-name]
   hh:16:33   cinnamon-screensaver-pam-helper[2109]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user my-user-name account temporarily locked
[..]

@diath
Copy link

diath commented Oct 4, 2023

I'm experiencing the same issue, there's two things I have noticed when it happens:

  1. When I bring up the visual keyboard, the layout is AZERTY instead of QWERTY even though I only have the default QWERTY English (US) layout added and enabled.
  2. When I switch to another TTY, and try to log in, it says that my account is temporarily suspended from logging in for failed password logins, and not that the password is incorrect, but if I switch back to Cinnamon login screen, it will insist that the issue is caused by an invalid password. If I wait 10 minutes, and try to log in again, it will work again.

@OnTheGrind
Copy link

EndeavorOS latest as of March 25th 2024

Kernel 6.8.1-arch-1-1

Cinnamon 6.0.4

Screen saver takes first correct password attempt and interprets it as 3 failed password attempts.

However, clicking the icon to go to the default login screen on the screensaver login screen allows you to login.

@leigh123linux
Copy link
Contributor

Has anyone reported the issue to archlinux?
We can't fix their crappy packaging issues here.

@ArchangeGabriel

@ioquatix
Copy link

Why do you think this is an issue with how it's packaged in Arch? It looks like a problem with PAM/Screensaver being too sensitive to trigger failed auth.

@leigh123linux
Copy link
Contributor

leigh123linux commented Mar 25, 2024

Why do you think this is an issue with how it's packaged in Arch? It looks like a problem with PAM/Screensaver being too sensitive to trigger failed auth.

The absence of other distro's being affected is a strong indicator that it's packaging/distro related.

@ioquatix
Copy link

It might depend on how faillock.conf is configured by default, e.g. see my comment #412 (comment)

Can we compare that file for different distributions?

In any case, the root cause of the issue seems to be the sensitivity of PAM & the screensaver password entry - simply triggering the password entry to show counts as a failed activation (last time I checked). It should only count as a failed attempt if the user actually enters a password and presses enter, etc.

@offa
Copy link

offa commented Mar 25, 2024

Why do you think this is an issue with how it's packaged in Arch? It looks like a problem with PAM/Screensaver being too sensitive to trigger failed auth.

The absence of other distro's being affected is a strong indicator that it's packaging/distro related.

FreeBSD is affected too.

Can we compare that file for different distributions?

I'd expect deny beeing default (= 3) on most distros.

At least these do stick to it: Fedora 39, Arch, Ubuntu 22.04 and Debian 12.

@OnTheGrind
Copy link

OnTheGrind commented Mar 25, 2024

Has anyone reported the issue to archlinux? We can't fix their crappy packaging issues here.

@ArchangeGabriel

FreeBSD and I believe Ubuntu are also affected. At least in my google searches, there were threads complaining of the same issue, albeit some were older say from 2017 etc. This issue seems to have been going on for many years with no resolve. Temporary fixes suggested often induce serious security implications.

I've seen threads on the archlinux bbs with this complaint, but no who is in charge of programming or packaging either arch itself or any of their derivatives, have suggested a fix.

There is a fairly large Arch based community with about 30 active distros based on arch. I am surprised none of the Manjaro people have issued a patch or fix.

Its an annoying bug, but not a show stopper, since the easy way around it is to click the icon (shows an outline of two people) which takes you to the default login screen for cinnamon, you can login without issues as long as you haven't tried to input any text into the screen saver login. If you do, and go to the default login screen, it will show the error of "3 failed login attempts", and you can't log in.

You have two icons you can click, the "lock" icon which is the enter for the password input in the screen saver password input, or the "two people" icon, which takes you to the default log in screen. Again, as long as no text is inputted into the screen saver password prompt, you simply click the "two people" (I wish I knew what the button was actually called) and then log in as if you had either logged out or just booted into the OS.

@ioquatix
Copy link

ioquatix commented Mar 25, 2024

@mtwebster do you mind helping us understand the PAM interaction of this codebase? i.e. where does the pam session start, and is it started just by presenting the text input box or does it only start after the user focuses that box, or starts typing?

Maybe

res = cs_auth_verify_user (g_get_user_name (),
is being called spuriously, triggering multiple calls to pam_authenticate and thus incorrectly causing pam_faillock to trigger.

@hazepastel
Copy link

I can confirm Fedora (via the Cinnamon spin) is also affected by this bug

@hazepastel
Copy link

I've done some further testing and am starting to suspect this is related to bluetooth. Having my headphones and controller both connected via bluetooth causes this bug to occur 100% of the time when locking the screen. The password prompt appears by itself and never goes away, probably because something is constantly submitting garbage passwords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests