2

Basically, I want to disable multiple logins. The family laptop (not mine) has a problem with the x server -- at least it seems to be the x server. When two users are logged in simultaneously the x-server fails to start for the one who was logged in first. Having two users logged in seems to steal processor speed anyway. So I want to disable people from choosing 'switch user' over 'log out (username)' or 'shut down'.

7

There is a setting /desktop/gnome/lockdown/disable_user_switching in GConf that allows you to disable the user switching.

You can change this setting by running gconf-editor from the Alt+F2 "Run" dialog (depending on your distro, it might also be available somewhere in the menus).


If you're using GNOME 3 you can simply run:

gsettings set org.gnome.desktop.lockdown disable-user-switching true
  • 2
    The following command will switch it from the command line: gconftool --set --type bool /desktop/gnome/lockdown/disable_user_switching true – Steven D Nov 7 '10 at 5:59
  • @don_crissti while this removes the drop down option for switching users it does not remove the Log in as another user link on the lock screen. – RDT2 May 31 '19 at 21:05
1

I realize this is an old thread, but as @RDT2 points out, this answer only disables the option for switching users from the drop down menu when a user is already logged in. It does NOT disable the "Login as another user" option from the lock screen. To disable it on the lock screen, you need to set user-switch-enabled to false in org/gnome/desktop/screensaver. More info https://mrvanhorn.github.io/blog/2019/09/11/disable-user-switching

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.