After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662813 - Prevent halting/restarting from gdm when switching users
Prevent halting/restarting from gdm when switching users
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
3.8.x
Other Linux
: Normal enhancement
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-26 22:40 UTC by Atri
Modified: 2018-05-24 10:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Atri 2011-10-26 22:40:35 UTC
GNOME version 3.2.0
Distribution: openSUSE 11.4

At present the situation is that if an user A locks his session, anyone else (say user X who also has physical access to the computer) can still opt to "switch user", go to the gdm login screen, and then, from there choose to halt/restart the system without so much as a warning about another session running in the background. This is a big inadequacy in my opinion and perhaps also a security risk. I suggest that the halt/restart buttons be disabled completely and not shown on the gdm shell when it is presented to a user upon choosing to "switch user" while another user session is logged in.
Comment 1 Matthias Clasen 2011-10-27 00:53:01 UTC
We are calling ConsoleKit methods to power off or restart the machine. ConsoleKit has different PolicyKit actions for these, depending on whether there are multiple users logged in or not. By adjusting the PolicyKit policy on your system you can simply forbid these actions while multiple users are logged in, or require the root password.
Comment 2 Dominique Leuenberger 2013-04-06 10:09:31 UTC
Matthias,

The situation is maybe slighty different than expected.

While logged in in GNOME3 (and a 'root session on a different TTY running), choosing to shutdown gives a dialog with a warning that other users are logged in.

Switching to gdm (switch user), and choosing shutdown there, does not give any warning.

A polkit auth dialog for shutdown on the local console is useless: the power button is in reach of the user anyway.. so the feature is more supposed to be an 'information' to the user initiating the shutdown than an attempt in blocking him (which can't succeed)
Comment 3 GNOME Infrastructure Team 2018-05-24 10:38:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/80.