Shutdown/Restart - Get rid of authentication during shutdown/restart

michelsaey
  11 years ago
  1

How to get rid of annoying authentication during shutdown/restart.

- Open terminal

- Type "sudo gedit /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

- Add line "yes"

I put here below the file where to add te line in red

 

 

<!--?xml version="1.0" encoding="UTF-8"?-->
<policyconfig>

  <action id="org.freedesktop.consolekit.system.stop">
    <description>Stop the system</description>
    <message>System policy prevents stopping the system</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <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>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.restart">
    <description>Restart the system</description>
    <message>System policy prevents restarting the system</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <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>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>

Comments
michelsaey 9 years ago

If there is, I didn't found it but this tutorial works ;)


MagicMint 9 years ago

Are you sure there isn’t an appropriate place to put such a modification in somewhere under /etc?


michelsaey 11 years ago

@vincentv:
When multiple user are logged in, the system asks for a password when you want to shutdown and it was annoying me, with this it don't ask it anymore :)

@kazztan0325:
If I understand it right, then you must apply this only in LMDE.


kazztan0325 11 years ago

@michelsaey:
I have used LMDE Gnome and Xfce as Virtual Machines in VirtualBox before, but they passed away with vboxvideo driver's bug(?) when I had applied Update Pack 4, so I cannot confirm what about latest spins of LMDE.

Now, to return to the subject.
LMDE required me to authenticate before shutdown/restart.
I was annoyed by this phenomenon whenever I would shutdown/restart LMDE.

As for Cinnamon and MATE (they are my VMs too), MDM window suddenly appears in black screen, but there is no need to enter password, MDM window disappears after a split second whenever I would shutdown/restart Cinnamon or MATE.


michelsaey 11 years ago

@kazztan0325:
It's for Cinnamon users, Mate users should use pluma instead of gedit. I don't know if it's neccesairy for LMDE. Is that problem there too? Just see if the file /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy is there. Is it there then I suppose it's also for LMDE.


kazztan0325 11 years ago

@michelsaey:
Is this tutorial written for LMDE users?