Page 1 of 1

Root password required to shutdown?

Posted: Fri Nov 26, 2010 11:13 am
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:

Re: Root password required to shutdown?

Posted: Fri Nov 26, 2010 11:44 am
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..

Re: Root password required to shutdown?

Posted: Fri Nov 26, 2010 3:53 pm
by specmod0
its annoying..

Re: Root password required to shutdown?

Posted: Sat Nov 27, 2010 1:32 pm
by Carl
Thanks sumski think that fixed it =]

Re: Root password required to shutdown?

Posted: Sat Nov 27, 2010 1:41 pm
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

Re: Root password required to shutdown?

Posted: Sat Nov 27, 2010 3:06 pm
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 :) )

Re: Root password required to shutdown?

Posted: Sat Nov 27, 2010 3:08 pm
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

Re: Root password required to shutdown?

Posted: Sun Nov 28, 2010 2:14 pm
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