Annoying Authentication during Shutdown/Restart

Archived topics about LMDE 1
Locked
indaymadel
Level 2
Level 2
Posts: 87
Joined: Thu Sep 30, 2010 8:57 pm
Contact:

Annoying Authentication during Shutdown/Restart

Post by indaymadel » Tue Nov 02, 2010 3:38 am

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.
Get started building backlinks using my free backlinks collection.

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 » Tue Nov 02, 2010 3:52 am

had that too, but it has disappeared mysteriously :D

indaymadel
Level 2
Level 2
Posts: 87
Joined: Thu Sep 30, 2010 8:57 pm
Contact:

Re: Annoying Authentication during Shutdown/Restart

Post by indaymadel » Tue Nov 02, 2010 10:53 am

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.
Get started building backlinks using my free backlinks collection.

secipolla
Level 4
Level 4
Posts: 355
Joined: Sun Sep 05, 2010 5:19 pm

Re: Annoying Authentication during Shutdown/Restart

Post by secipolla » Tue Nov 02, 2010 12:17 pm

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.

User avatar
ukbrian
Level 4
Level 4
Posts: 274
Joined: Thu Jul 29, 2010 6:03 am
Location: Cheltenham, UK

Re: Annoying Authentication during Shutdown/Restart

Post by ukbrian » Tue Nov 02, 2010 12:26 pm

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 » Thu Nov 04, 2010 4:39 am

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 » Fri Nov 05, 2010 6:08 am

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

:(

indaymadel
Level 2
Level 2
Posts: 87
Joined: Thu Sep 30, 2010 8:57 pm
Contact:

Re: Annoying Authentication during Shutdown/Restart

Post by indaymadel » Fri Nov 26, 2010 7:31 am

I'm still having this problem.
Anyone knows how to fix this? :(
Get started building backlinks using my free backlinks collection.

User avatar
sumski
Level 3
Level 3
Posts: 109
Joined: Fri Nov 26, 2010 6:36 am
Location: Zagreb, Croatia

Re: Annoying Authentication during Shutdown/Restart

Post by sumski » Fri Nov 26, 2010 7:49 am

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
Acer Extensa 5630G - Core2Duo T5800 2GHz , 4 GB ram, Ati Mobility 3650.
OpenSUSE 12.1 KDE 4.7.3
Debian Sid KDE 4.7.1/2

User avatar
sumski
Level 3
Level 3
Posts: 109
Joined: Fri Nov 26, 2010 6:36 am
Location: Zagreb, Croatia

Re: Annoying Authentication during Shutdown/Restart

Post by sumski » Fri Nov 26, 2010 7:55 am

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..
Acer Extensa 5630G - Core2Duo T5800 2GHz , 4 GB ram, Ati Mobility 3650.
OpenSUSE 12.1 KDE 4.7.3
Debian Sid KDE 4.7.1/2

secipolla
Level 4
Level 4
Posts: 355
Joined: Sun Sep 05, 2010 5:19 pm

Re: Annoying Authentication during Shutdown/Restart

Post by secipolla » Sat Dec 11, 2010 10:42 am

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
Level 1
Level 1
Posts: 1
Joined: Wed Nov 17, 2010 9:00 am

Re: Annoying Authentication during Shutdown/Restart

Post by Karton-CH » Tue Mar 29, 2011 1:53 pm

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
Level 3
Level 3
Posts: 140
Joined: Wed Mar 02, 2011 4:45 am

Re: Annoying Authentication during Shutdown/Restart

Post by amina » Wed Mar 30, 2011 9:20 am

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.

User avatar
Anakondarh
Level 1
Level 1
Posts: 12
Joined: Wed Aug 19, 2009 11:41 pm
Location: Pacific ocean breeze...

Re: Annoying Authentication during Shutdown/Restart

Post by Anakondarh » Thu Oct 27, 2011 5:12 pm

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...
Linux Mint 7 KDE on my beloved Compaq laptop

User avatar
proxima_centauri
Level 11
Level 11
Posts: 3961
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Annoying Authentication during Shutdown/Restart

Post by proxima_centauri » Thu Oct 27, 2011 5:38 pm

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

Locked

Return to “LMDE 1 Archive”