Workaround:
As I've commented previously, this partial solution is to modify this
file:
/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
and change:
auth_admin_keep
to:
yes
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 Desktop
Packages, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/861171
Title:
Shutdown from greeter does nothing when multiple accounts open
Status in The Session Menu:
Triaged
Status in LightDM GTK+ Greeter:
Triaged
Status in Unity Greeter:
Triaged
Status in “gnome-session” package in Ubuntu:
Confirmed
Status in “indicator-session” package in Ubuntu:
Triaged
Status in “policykit” package in Ubuntu:
Confirmed
Status in “unity-greeter” package in Ubuntu:
Triaged
Bug description:
Selecting shutdown from the greeter does nothing when multiple
accounts are open.
This is because the lightdm user (which the greeter runs as) does not
have permission to shutdown while sessions are open. Inside a normal
session this would just return you to the login screen.
The solution is either for the indicator to say "not allowed" or to
run a PolicyKit frontend in the greeter than can get the required
permissions to perform the shutdown.
To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-session/+bug/861171/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp