Root password required to shutdown?

Archived topics about LMDE 1 and LMDE 2
Locked
User avatar
Carl
Level 5
Level 5
Posts: 701
Joined: Wed Apr 15, 2009 5:20 pm
Location: Isle of Wight, UK

Root password required to shutdown?

Post by Carl »

basically the title says it all =/

Why is the root password needed to shutdown sometimes? and how do I disable it if it's a feature rather then a bug :roll:
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sumski

Re: Root password required to shutdown?

Post by sumski »

http://forums.linuxmint.com/viewtopic.php?f=141&t=58728



ALT+f2 --> gksu gedit /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

last section:
<action id="org.freedesktop.consolekit.system.restart-multiple-users">
<description>Restart the system when multiple users are logged in</description>
<message>System policy prevents restarting the system when other users are logged in</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>


change no to yes

if you want remove password asking when you want shutdown the system then change no to yes in this section:
<action id="org.freedesktop.consolekit.system.stop-multiple-users">
<description>Stop the system when multiple users are logged in</description>
<message>System policy prevents stopping the system when other users are logged in</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>


i think there's a bug , when using sudo/su/gksu , not sure witch of those , or when using all, root user is "inactive" , and polkit ask for password because two users are logged in..
specmod0

Re: Root password required to shutdown?

Post by specmod0 »

its annoying..
User avatar
Carl
Level 5
Level 5
Posts: 701
Joined: Wed Apr 15, 2009 5:20 pm
Location: Isle of Wight, UK

Re: Root password required to shutdown?

Post by Carl »

Thanks sumski think that fixed it =]
robert-e

Re: Root password required to shutdown?

Post by robert-e »

Had this problem.
Did the fix; and checked that fix was properly applied (and saved)
Started Update Manager and did updates
Attempted to shutdown..alas still have the problem.
Rechecked that fix was still in effect (after the updates)...was

What to do?

Regards,
Bob


Edit...Damned policyKit...I wonder if PolicyKit was written by the same guy as PackageKit??
B
sumski

Re: Root password required to shutdown?

Post by sumski »

can't reproduce.
i had the same trouble a while back; i'm now using polkit-1 from experimental with both "allow inactive" values set to no , and it doesn't asks for password...

did you restart? or at least killed X server? try changing both "allow inactive" and "allow active" to yes (make a backup before that :) )
Last edited by sumski on Sat Nov 27, 2010 3:10 pm, edited 1 time in total.
sumski

Re: Root password required to shutdown?

Post by sumski »

my bad :)
try changing both allow_auth_admin to yes , and leave the "no" value as it is
if that isn't working try both values as yes
robert-e

Re: Root password required to shutdown?

Post by robert-e »

Yes, I rebooted; serveral times, in fact. No joy. Thanks for your other suggestions, but I think I will not twiddle with those, as I do not understand the ramifications. Not a big deal, and I will await it's subsequent fix later.
Regards,
Bob
Locked

Return to “LMDE Archive”