[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
*** 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 descriptionStop the system when multiple users are logged in/description messageSystem policy prevents stopping the system when other users are logged in/message defaults allow_inactiveno/allow_inactive allow_activeauth_admin_keep/allow_active /defaults /action to action id=org.freedesktop.consolekit.system.stop-multiple-users descriptionStop the system when multiple users are logged in/description messageSystem policy prevents stopping the system when other users are logged in/message defaults allow_inactiveno/allow_inactive allow_activeyes/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 descriptionRestart the system when multiple users are logged in/description messageSystem policy prevents restarting the system when other users are logged in/message defaults allow_inactiveno/allow_inactive allow_activeauth_admin_keep/allow_active /defaults /action to action id=org.freedesktop.consolekit.system.restart-multiple-users descriptionRestart the system when multiple users are logged in/description messageSystem policy prevents restarting the system when other users are logged in/message defaults allow_inactiveno/allow_inactive allow_activeyes/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 Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
*** This bug is a duplicate of bug 861171 *** https://bugs.launchpad.net/bugs/861171 So, this bug is still active and only fixed for live sessions, right? Besides, isn't it a duplicate of #861171? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
** This bug has been marked a duplicate of bug 861171 Shutdown from greeter does nothing when multiple accounts open -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Adding a casper task to be closed by the change proposed by Alex. ** Also affects: casper (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
This bug was fixed in the package casper - 1.317 --- casper (1.317) quantal; urgency=low * scripts/casper-bottom/44pk_allow_ubuntu: grant admin polkit privileges to lightdm user, which enables restart and shutdown from the greeter (LP: #86) -- Alex Chiang achi...@canonical.com Tue, 22 May 2012 11:32:24 -0400 ** Changed in: casper (Ubuntu) Status: New = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
** Branch linked: lp:~achiang/ubuntu/quantal/casper/bug-86 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
The merge proposal I submitted above (https://code.launchpad.net/~achiang/ubuntu/quantal/casper/bug-86/+merge/106476) is a minimal fix to allow shutdown/restart to work from the Unity greeter during a live session. I don't think it fixes the general case mpt is talking about in the original description, but my patch is a small step in the right direction. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
The temporary workaround is to edit /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy (every time it's updated) and in org.freedesktop.consolekit.system.restart-multiple-users and org.freedesktop.consolekit.system.stop-multiple-users set allow_activeyes/allow_active -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
** Changed in: indicator-session Status: Invalid = New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: indicator-session (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Bilal, lightdm has nothing to do with that, indicator-session is used, the issue is mostly with gnome-session,consolekit but indicator-session since it's what handle the logout dialog could help messaging that somebody else is logged in ** Package changed: lightdm (Ubuntu) = indicator-session (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
@Doug: I doubt we want shutdown to log out all active sessions without asking for confirmation first, it would be too easy to misclick and take sessions down that you didn't notice were running and that you didn't want to stop in this case -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
@Bilal, also please assign bugs with the greeter to the unity-greeter package as that is the most likely location of the problem. We'll reassign them to LightDM if the problem turns out to be from there. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
** Changed in: indicator-session Status: New = Confirmed ** Changed in: indicator-session (Ubuntu) Status: New = Confirmed ** Changed in: indicator-session Importance: Undecided = High ** Changed in: indicator-session (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
** Also affects: indicator-session (Ubuntu) Importance: Undecided Status: New ** Also affects: indicator-session Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
This bug has been reported on the Ubuntu ISO testing tracker. A list of all reports related to this bug can be found here: http://iso.qa.ubuntu.com/qatracker/reports/bugs/86 ** Tags added: iso-testing -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
This isn't an issue with indicator-session, but with either lightdm or gnome-session. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lightdm (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
** Package changed: indicator-session (Ubuntu) = lightdm (Ubuntu) ** Changed in: indicator-session Status: New = Incomplete ** Changed in: indicator-session Status: Incomplete = Invalid -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Well if the intention is to allow the admin (group:sudo in 12.04) to be able to do this then why not just add a .pkla for consolekit? Seems quite similar to 'indicatorcpufreqselector' which has been handled that way when polkit's auth_admin_keep was ineffectual -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Combined with bug874870 (user-switching fails for some reason; https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/874872), this makes LightDM useless for all but the inital login for me. I AM the admin, but when I can't even log into my own session, I'm only left with doing hard-resets. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
There is no sense in preventing non admin users from shutting down the computer since local users may force shutdown. A least, there could be a prompt for admin password in order to force all users logout before shutdown. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Until this is sorted out properly, it would be nice if the user at least got feedback as to why the shutdown/restart attempt failed. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Local user should be able to shutdown even when not admin, otherwise she will use power button.. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Sebastian, as I said, if you weren't an admin you'd need an admin to authenticate for you, so the dialog could appear regardless of whether the active user account is an admin. Chris, software installation/removal inhibiting shutdown is discussed in bug 842799. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Huh, I assumed this was just a regression, not something that would need design work. The design is fairly simple, though it would require one new string. There should be a PolicyKit permission for shutting down (including restarting) while other people are logged in, and only admins should have it. So if you choose either command while other accounts are logged in, you should get a PolicyKit dialog saying Other user accounts are logged in. Shutting down before they log out may cause them to lose work. To continue, you need to authenticate. That would answer all three questions: the dialog would be the thing warning you, if you weren't an admin you'd need an admin to authenticate for you, and that means the dialog could appear regardless of whether the active user account is an admin. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
if you aren't an admin and not allow to take down other users' session what should happen? should restart and shutdown just log out? or display a dialog? or not be enabled in the indicator to indicate you can't do those? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
The original plan a couple of years ago to fix this properly was to have a new shutdown API in Consolekit which the sessions of all logged in users could interact with to ensure a clean shutdown for all users, and allow other sessions to inhibit shutdown if the user had unsaved work or etc (and also provide a way for system jobs such as software updates to inhibit shutdown). This never materialized though, and I guess that there is little motivation for fixing this in consolekit / gnome-session now with all these being eventually replaced by systemd. Some background info: http://mail.gnome.org/archives/gdm-list/2009-June/msg7.html https://bugs.freedesktop.org/show_bug.cgi?id=24493 ** Bug watch added: freedesktop.org Bugzilla #24493 http://bugs.freedesktop.org/show_bug.cgi?id=24493 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 855556] Re: Restart and Shut Down don't work if anyone else is logged in
Thanks Matthew, some questions for you: - should something warn you that other users are logged in before doing the restart or shutdown? - should non-admin user be allow to shutdown the machine when other sessions are active? - what should happen if the user who wants to shutdown is not authorized the close other user sessions? ** Changed in: gnome-session (Ubuntu) Status: New = Confirmed ** Changed in: gnome-session (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/86 Title: Restart and Shut Down don't work if anyone else is logged in To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/86/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs