Annoying Authentication during Shutdown/Restart
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Annoying Authentication during Shutdown/Restart
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.
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Annoying Authentication during Shutdown/Restart
had that too, but it has disappeared mysteriously
Re: Annoying Authentication during Shutdown/Restart
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.
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.
Re: Annoying Authentication during Shutdown/Restart
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.
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.
Re: Annoying Authentication during Shutdown/Restart
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
in a terminal
and add the appropriate line or both if you want to restart, at the bottom of the file
My video is at http://forums.linuxmint.com/viewtopic.php?f=141&t=56793
ukbrian
Code: Select all
sudo visudo
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
ukbrian
Re: Annoying Authentication during Shutdown/Restart
it came back, and disappeared again
Re: Annoying Authentication during Shutdown/Restart
Ditto for my HP ProBook notebook PC.indaymadel wrote:I still have it everytime I shutdown my computer.
Re: Annoying Authentication during Shutdown/Restart
I'm still having this problem.
Anyone knows how to fix this?
Anyone knows how to fix this?
Re: Annoying Authentication during Shutdown/Restart
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
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
Re: Annoying Authentication during Shutdown/Restart
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..
<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: Annoying Authentication during Shutdown/Restart
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.
Thanks, sumski. Now I could translate those messages.
Re: Annoying Authentication during Shutdown/Restart
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
Re: Annoying Authentication during Shutdown/Restart
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.
gksu gedit /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
You can modify and save.
Re: Annoying Authentication during Shutdown/Restart
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...
Re: Annoying Authentication during Shutdown/Restart
Create a new thread. The information here is 2 years old.