[Bug 855556] Re: "Restart" and "Shut Down" don't work if anyone else is logged in

parq 855556 at bugs.launchpad.net
Sat Aug 18 19:08:12 UTC 2012


*** This bug is a duplicate of bug 861171 ***
    https://bugs.launchpad.net/bugs/861171

Workaround:

Edit the file
/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy using your
favorite text editor. You will need root permissions.

Change the section relating to shutdown when others are logged in from

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

to

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

and the section relating to rebooting when others are logged in from

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

to

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

And that will allow you (any user) shutdown and reboot the PC when
multiple users are logged in. Whether you want to do that is a different
question.

Source:  http://askubuntu.com/questions/1190/how-can-i-make-shutdown-
not-require-admin-password

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/855556

Title:
  "Restart" and "Shut Down" don't work if anyone else is logged in

Status in The Session Menu:
  Confirmed
Status in “casper” package in Ubuntu:
  Fix Released
Status in “gnome-session” package in Ubuntu:
  Confirmed
Status in “indicator-session” package in Ubuntu:
  Confirmed

Bug description:
  gnome-session 3.1.91-0ubuntu2, lightdm 0.9.7-0ubuntu1, indicator-
  session 0.3.5.1-0ubuntu1, Ubuntu 11.10 beta

  1. Start up the computer.
  2. At the login screen, choose "Restart", and confirm it.
  3. Log in.
  4. From the device menu, choose "Restart", and confirm it.
  5. Log in again.
  6. Switch to a guest session.
  7. Switch back to your user account.
  8. From the device menu, choose "Restart", and confirm it.
  9. From the login screen, choose "Restart", and confirm it.

  What happens:
  2. The computer restarts.
  4. The computer restarts.
  8. Ubuntu returns to the login screen.
  9. Nothing at all.

  What should happen:
  2. The computer restarts.
  4. The computer restarts.
  8. The computer restarts.
  9. The computer restarts.

  The same problem happens with "Shut Down". At a terminal, "sudo
  reboot" and "sudo shutdown" work as expected.

  See also bug 838792, where "Restart" logs out with no-one else logged
  in (that bug does not occur for me). While testing this bug I also
  triggered bug 740382.

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-session/+bug/855556/+subscriptions




More information about the foundations-bugs mailing list