Annoying Authentication during Shutdown/Restart

Archived topics about LMDE 1 and LMDE 2
Locked
indaymadel

Annoying Authentication during Shutdown/Restart

Post by indaymadel »

I updated my system with Romeo repo enabled and probabaly one of the updates mess with my system.
Everytime I try to shutdown or restart my system, from Menu > Quit > Restart/Shutdown, it always asks for a password. Same as asking for authentication password (sudo) when opening Administrative applications. As if restart/shutdown is now part of administrative task.

How do I disable the password authentication during restart/shutdown?

It says, "System policy prevents stopping the system when other users are logged in" and is asking for a password. Pressing Cancel brings me to the GUI login prompt.
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.
vicshrike
Level 2
Level 2
Posts: 58
Joined: Tue Sep 14, 2010 5:14 am
Location: /debian/openbox

Re: Annoying Authentication during Shutdown/Restart

Post by vicshrike »

had that too, but it has disappeared mysteriously :D
indaymadel

Re: Annoying Authentication during Shutdown/Restart

Post by indaymadel »

Lucky for you. I still have it everytime I shutdown my computer.
I only have one account on my computer. If this problem hits someone with multiple account, then other accounts can't restart/shutdown the computer since they're not sudoer.
secipolla

Re: Annoying Authentication during Shutdown/Restart

Post by secipolla »

There must be something running as root.
That happens for instance if you mounted some partition with nautilus, if you're logged as root in another virtual terminal, I think with wicd too etc.
ukbrian

Re: Annoying Authentication during Shutdown/Restart

Post by ukbrian »

Sorry I can't help on why it happens but a work around that secipolla gave me the code for to add a big red shut down button to my panel without being asked for your password was to run

Code: Select all

sudo visudo
in a terminal
and add the appropriate line or both if you want to restart, at the bottom of the file

Code: Select all

ukbrian ALL=(root) NOPASSWD: /sbin/halt
ukbrian ALL=(root) NOPASSWD: /sbin/reboot
My video is at http://forums.linuxmint.com/viewtopic.php?f=141&t=56793
ukbrian
vicshrike
Level 2
Level 2
Posts: 58
Joined: Tue Sep 14, 2010 5:14 am
Location: /debian/openbox

Re: Annoying Authentication during Shutdown/Restart

Post by vicshrike »

it came back, and disappeared again :lol:
telic
Level 3
Level 3
Posts: 188
Joined: Thu Mar 22, 2007 7:48 am

Re: Annoying Authentication during Shutdown/Restart

Post by telic »

indaymadel wrote:I still have it everytime I shutdown my computer.
Ditto for my HP ProBook notebook PC.

:(
indaymadel

Re: Annoying Authentication during Shutdown/Restart

Post by indaymadel »

I'm still having this problem.
Anyone knows how to fix this? :(
sumski

Re: Annoying Authentication during Shutdown/Restart

Post by sumski »

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
sumski

Re: Annoying Authentication during Shutdown/Restart

Post by sumski »

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..
secipolla

Re: Annoying Authentication during Shutdown/Restart

Post by secipolla »

It's not inactive. If you use sudo, for instance, there's a timeout during which the root user is active.

Thanks, sumski. Now I could translate those messages.
Karton-CH

Re: Annoying Authentication during Shutdown/Restart

Post by Karton-CH »

sumski wrote: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


Hello, i've got the same problem.

I found this file, but it is read-only... where can I change this status?

I'm not so top in Linux Mint.

thank you

Greetz Karton-CH
amina

Re: Annoying Authentication during Shutdown/Restart

Post by amina »

If you open it using the command given in the previous post:

gksu gedit /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

You can modify and save.
Anakondarh

Re: Annoying Authentication during Shutdown/Restart

Post by Anakondarh »

Hmm. The solution posted in this thread didn't work for me... for good measure, I changed all the inactive prompts in that file to "yes", but I still am asked sometimes for my password when I shutdown/reboot...
proxima_centauri

Re: Annoying Authentication during Shutdown/Restart

Post by proxima_centauri »

Create a new thread. The information here is 2 years old.
Locked

Return to “LMDE Archive”