[opensuse] Can't suspend (hibernate) anymore when a second user (root) is still logged in
Hello, A change from earlier this year made suspend (hibernate) fail with "Permission denied" when I have a root terminal open (i.e. I'm logged in with KDE as a normal user and I did a "ssh root@localhost" in a terminal). Note that I understand that the risks involved, so please refrain from starting a discussion why I shouldn't do this. All I want to know is how I can disable this check; I don't care who else is logged into my computer (I might even have a remote login from the server in the basement), I want it to hibernate without question when I'm telling it to - I don't want to climb into the basement in the middle of the night just to be able to suspend. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Mon, 08 Dec 2014 21:21:39 +0100 Aaron Digulla <digulla@hepe.com> пишет:
Hello,
A change from earlier this year made suspend (hibernate) fail with "Permission denied" when I have a root terminal open (i.e. I'm logged in with KDE as a normal user and I did a "ssh root@localhost" in a terminal).
Note that I understand that the risks involved, so please refrain from starting a discussion why I shouldn't do this.
All I want to know is how I can disable this check; I don't care who else is logged into my computer (I might even have a remote login from the server in the basement), I want it to hibernate without question when I'm telling it to - I don't want to climb into the basement in the middle of the night just to be able to suspend.
And your openSUSE version is ... ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Dienstag, 09. Dezember 2014 04:24 CET, Andrei Borzenkov <arvidjaar@gmail.com> schrieb:
В Mon, 08 Dec 2014 21:21:39 +0100 Aaron Digulla <digulla@hepe.com> пишет:
Hello,
A change from earlier this year made suspend (hibernate) fail with
"Permission denied" when I have a root terminal open (i.e. I'm logged in with KDE as a normal user and I did a "ssh root@localhost" in a terminal).
Note that I understand that the risks involved, so please refrain from starting a discussion why I shouldn't do this.
All I want to know is how I can disable this check; I don't care who else is logged into my computer (I might even have a remote login from the server in the basement), I want it to hibernate without question when I'm telling it to - I don't want to climb into the basement in the middle of the night just to be able to suspend.
And your openSUSE version is ... ?
Ah, the old "it's obvious for me" fault :-) Sorry for that. It happend for openSUSE 13.1 and 13.2. I patch my system roughly every week. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-12-08 21:21, Aaron Digulla wrote:
All I want to know is how I can disable this check; I don't care who else is logged into my computer (I might even have a remote login from the server in the basement), I want it to hibernate without question when I'm telling it to - I don't want to climb into the basement in the middle of the night just to be able to suspend.
I hibernate using "pm-hibernate" command in a terminal opened as root, so I bypass those checks, I believe. (I had some other problem when trying to hibernate as plain user in xfce, so I use that trick routinely). A year ago the session would refuse to hibernate if a local user had a session, but not a remote user. I pointed this out. Now they detect both situations, instead of none, as I asked. The situation can be specially dramatic on a laptop with low battery. By the way: an ssh session can survive hibernation: depends how long it stays dormant. At worst, you could get a question asked what to do. Or pop a warning to remote users about what is going to happen. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Am Dienstag, 09. Dezember 2014 04:27 CET, "Carlos E. R." <robin.listas@telefonica.net> schrieb:
On 2014-12-08 21:21, Aaron Digulla wrote:
All I want to know is how I can disable this check; I don't care who else is logged into my computer (I might even have a remote login from the server in the basement), I want it to hibernate without question when I'm telling it to - I don't want to climb into the basement in the> middle of the night just to be able to suspend.
I hibernate using "pm-hibernate" command in a terminal opened as root, so I bypass those checks, I believe.
That might work but I'l prefer to disable those checks: 1. I click the Hibernate button in kshutdown 2. The screen is locked 3. The screen blankers are starting up 4. I hear a "beep" - KDE is trying to show a notification that Hibernate isn't possible ("Permission denied") 5. I have to move the mouse/press shift 6. Log in again 7. Kill the root terminal (Ctrl+D sometimes hangs?) 8. Hibernate again.
A year ago the session would refuse to hibernate if a local user had a session, but not a remote user. I pointed this out. Now they detect both situations, instead of none, as I asked.
Do you know what they changed? Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-12-11 11:21, Aaron Digulla wrote:
Do you know what they changed?
Nope. Could be code. :-( Maybe policykit. Have a look here: [Bug 846914] 13.1 RC1 - when hibernating, the system requests root's password. [Bug 856773] User is asked for root's password to hibernate, but not for shutdown or reboot. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
В Thu, 11 Dec 2014 16:40:03 +0100 "Carlos E. R." <robin.listas@telefonica.net> пишет:
On 2014-12-11 11:21, Aaron Digulla wrote:
Do you know what they changed?
Nope. Could be code. :-( Maybe policykit.
At least in 13.2 hibernation is handled by logind which distinguishes between three cases - hibernate, hibernate with multiple sessions and hibernate with active inhibitors. The former does not require authentication for active session, other two - do. bor@opensuse:~> pkcheck --action-id org.freedesktop.login1.hibernate --process $$ bor@opensuse:~> pkcheck --action-id org.freedesktop.login1.hibernate-multiple-sessions --process $$ polkit\56retains_authorization_after_challenge=1 Authorization requires authentication and -u wasn't passed. bor@opensuse:~> I do not know in 13.1 KDE was already integrated with logind.
Have a look here:
[Bug 846914] 13.1 RC1 - when hibernating, the system requests root's password. [Bug 856773] User is asked for root's password to hibernate, but not for shutdown or reboot.
Aaron Digulla wrote:
Hello,
A change from earlier this year made suspend (hibernate) fail with "Permission denied" when I have a root terminal open (i.e. I'm logged in with KDE as a normal user and I did a "ssh root@localhost" in a terminal).
Note that I understand that the risks involved, so please refrain from starting a discussion why I shouldn't do this.
All I want to know is how I can disable this check; I don't care who else is logged into my computer (I might even have a remote login from the server in the basement), I want it to hibernate without question when I'm telling it to - I don't want to climb into the basement in the middle of the night just to be able to suspend.
Try suspending from root
Regards,
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Aaron Digulla
-
Andrei Borzenkov
-
Carlos E. R.
-
Joe Zappa