[Bug 1074902] Authentication is required for hibernating the system while other users are logged in
https://bugzilla.suse.com/show_bug.cgi?id=1074902
https://bugzilla.suse.com/show_bug.cgi?id=1074902#c10
--- Comment #10 from Matthias Gerstner
It looks like a regular `systemctl hibernate` works on leap 15.2 from a logged in users shell, so generally it should be working. Can you confirm this?
Sorry, what I meant is `systemctl suspend`, because hibernate has different polkit settings than suspend and this bug here was opened for the suspend case. So running polkitd for debugging in a root shell in the foreground and then `systemcl suspend` on a regular users terminal works for me. This will trigger "suspend-multiple-sessions", because root is also logged in in parallel for running polkitd. Debugging output looks like this: ``` ** (polkitd:2874): DEBUG: 11:09:13.508: system-bus-name::1.4 is inquiring whether system-bus-name::1.87 is authorized for org.freedesktop.login1.suspend-multiple-sessions ** (polkitd:2874): DEBUG: 11:09:13.510: user of caller is unix-user:root ** (polkitd:2874): DEBUG: 11:09:13.511: user of subject is unix-user:mgerstner ** (polkitd:2874): DEBUG: 11:09:13.512: checking whether system-bus-name::1.87 is authorized for org.freedesktop.login1.suspend-multiple-sessions ** (polkitd:2874): DEBUG: 11:09:13.514: 0x7f16e000b400 ** (polkitd:2874): DEBUG: 11:09:13.515: Checking whether session 1 is active. ** (polkitd:2874): DEBUG: 11:09:13.517: Session 1 has UID 1000. ** (polkitd:2874): DEBUG: 11:09:13.518: UID 1000 has state active. ** (polkitd:2874): DEBUG: 11:09:13.519: subject is in session 1 (local=1 active=1) ** (polkitd:2874): DEBUG: 11:09:13.522: is authorized (has implicit authorization local=1 active=1) ``` -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com