GNOME Bugzilla – Bug 598255
Can't disable user switching
Last modified: 2011-03-22 18:12:59 UTC
Dear friends, In order to disable user switching in Ubuntu 9.04, I do this: sudo gconftool-2 --shutdown sudo gconftool-2 --direct --config-source \ xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean \ --set /desktop/gnome/lockdown/disable_user_switching true Then I log out and back in. What happens is that the user switching applet isn't in the panel and I can't seem to add it to the panel. This isn't so good, IMO, because now there's no apparent way to log out as well. But this isn't the bug I'm reporting. In looking for a way to allow myself to log out, I've added the "Log Out Button" applet. Pressing this provides a button to also switch users. Which works. I think that it should be expected that switching users would not be allowed via any means when /desktop/gnome/lockdown/disable_user_switching is true. Blessings.
The other bug is reported as bug #598270.
Dear developers, I'm willing to pay 20$ for a fix. A fix which will be accepted into the project, of course.
I was using this feature fine in 9.04, from the "system, Administration, lockdown editor" program. In 9.10 it seems broken and the User switcher menu is displayed after it has been disabled.
There's a bounty on this bug at: http://www.fossfactory.org/project/p186
This should be most likely be filled against ConsoleKit ( fd.o ) from ConsoleKit/src/ck-seat.c 663 gboolean 664 ck_seat_can_activate_sessions (CkSeat *seat, 665 gboolean *can_activate, 666 GError **error) 667 { 668 g_return_val_if_fail (CK_IS_SEAT (seat), FALSE); <-- add check here, something akin to action "org.freedesktop.consolekit.seat.CanChangeSeat" 669 670 if (can_activate != NULL) { 671 *can_activate = (seat->priv->kind == CK_SEAT_KIND_STATIC); 672 } 673 674 return TRUE; 675 } probably should be marked as NOTGNOME ?
Well ConsoleKit isn't going to be able to check /desktop/gnome/lockdown/disable_user_switching
Created attachment 182711 [details] [review] patch for gnome 2.2x for gnome 2.26, opensuse has a patch ( gnome-session-honor-lockdown.patch ). Attached here for gnome-3.x, we have moved on to gsettings https://bugzilla.gnome.org/show_bug.cgi?id=643287
Created attachment 182718 [details] [review] patch for gnome 3.x for lockdown based on gsettings-desktop-schemas .
Created attachment 182719 [details] [review] patch for gnome 3.x updated to fix typo.
I've fixed this another way, since a critical part is actually in gsm-manager.c. But thanks for the patch!