You are not logged in.

#1 2025-03-15 21:44:40

mperrakis
Member
Registered: 2018-12-13
Posts: 4

[SOLVED] user login is requested twice after xfce4-screensaver is ...

I have xfce4-screensaver set to 10 minutes as you can see in the screenshot (https://imgdrop.io/image/JcNgU). After the screensaver has activated I get back to my session and I am presented with the greeter login twice despite the screensaver preferences are all off (https://imgdrop.io/image/JcyBt).

Here is the PAM file for xfce4-screensaver:

[me@archlinux: ~ 22:42]$ cat /etc/pam.d/xfce4-screensaver
auth include system-auth
-auth optional pam_gnome_keyring.so

If I comment the two lines above the greeter login appears only once.

Here are the contents of /etc/pam.d/system-auth that is in the first line of the file above.

[me@archlinux: ~ 22:43]$ cat /etc/pam.d/system-auth
#%PAM-1.0

auth       required                    pam_faillock.so      preauth
# Optionally use requisite above if you do not want to prompt for the password
# on locked accounts.
-auth      [success=2 default=ignore]  pam_systemd_home.so
auth       [success=1 default=bad]     pam_unix.so          try_first_pass nullok
auth       [default=die]               pam_faillock.so      authfail
auth       optional                    pam_permit.so
auth       required                    pam_env.so
auth       required                    pam_faillock.so      authsucc
# If you drop the above call to pam_faillock.so the lock will be done also
# on non-consecutive authentication failures.

-account   [success=1 default=ignore]  pam_systemd_home.so
account    required                    pam_unix.so
account    optional                    pam_permit.so
account    required                    pam_time.so

-password  [success=1 default=ignore]  pam_systemd_home.so
password   required                    pam_unix.so          try_first_pass nullok shadow
password   optional                    pam_permit.so

-session   optional                    pam_systemd_home.so
session    required                    pam_limits.so
session    required                    pam_unix.so
session    optional                    pam_permit.so

Any ideas why I am being asked for user password twice or even once?

Last edited by mperrakis (2025-03-19 16:32:15)

Offline

#2 2025-03-16 07:20:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,784

Re: [SOLVED] user login is requested twice after xfce4-screensaver is ...

If I comment the two lines above the greeter login appears only once.

Which one is responsible for the second request? pam_gnome_keyring?

I'd try to enable the lock screen but disable it for the screensaver, maybe there's a wrong default code path.

Offline

#3 2025-03-19 16:31:00

mperrakis
Member
Registered: 2018-12-13
Posts: 4

Re: [SOLVED] user login is requested twice after xfce4-screensaver is ...

Ok... been trying some things out and I think I finally got it.

Basically, I uncommented the commented lines in /etc/pam.d/xfce4-screensaver and then I enabled the lock for the screensaver, as it occurs before the lock for system sleep, and disabled system sleep lock. With this config I get asked for user password only once.

Thanks for the help. Will mark it as [SOLVED].

Offline

Board footer

Powered by FluxBB