"shut down" should at least log out (prohibited by multiple users)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-session (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: gnome-session
When policykit prohibits shutting down (due to multiple users being logged in), the shut down function displays a dialog asking for an admin password.
However, it does _not_ log out the user _before_ showing the dialog.
Scenario:
Two users logged in, one via desktop and other via ssh. Desktop user is not an admin.
1. Desktop user tries to shut down computer.
2. Desktop user is greeted with the password dialog.
3. Desktop user freezes like a deer in headlights and goes away from the computer.
4. SSH user runs 'w' to see whether there are other people still logged in. (will shut down computer if not)
5. SSH user sees two users logged in; decides not to shut down computer.
End result: nobody shut down the computer.
I believe GNOME should log out the desktop user immediately, and pass a note to GDM saying the user wishes to shut down the computer. GDM can then display the shutdown dialog.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gnome-session 2.30.0-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.31-11-rt x86_64
Architecture: amd64
Date: Mon Oct 4 17:28:44 2010
PackageArchitec
ProcEnviron:
LANG=fi_FI.utf8
SHELL=/bin/bash
SourcePackage: gnome-session
Thank you for your bug report.
I can't recreate this either, it could be a consequence of a behaviour defined while the desktop user is connected but the ssh user still see him. Could you try the following and see what happen?
Two users logged in, one via desktop and other via ssh. Desktop user is not an admin.
1. SSH user runs 'w' to see whether there are other people still logged in.
2. SSH user sees two users logged in BUT he decides to shut down computer.
3. Something happen to SSH user
4. Desktop user tries to shut down computer.
5. Something else happen to Desktop user.