In Gnome on Centos 7, does anyone know how to disable "Log in as another user" on the lock screen? I can disable user switching using:
disable-user-switching=true
I achieve this be adding: /etc/dconf/db/local.d/00-user-switching
[org/gnome/desktop/lockdown]
# Prevent the user from user switching
disable-user-switching=true
/etc/dconf/db/local.d/locks/lockdown
# Lock this key to disable user switching
/org/gnome/desktop/lockdown/disable-user-switching
This works nicely preventing the user switching option, but you can still switch users via the lock screen .
The reason as to why I'm doing this is because we're implementing a VNC recording solution. If a second person logs in, they are on a different display and therefore, VNC does not present that display to the client trying to record the screen as the original user stays on display 0 and the new user logged in is on display 1.
e.g.
[support@mymachine ~]$ who
fred :0 2018-09-26 08:27 (:0)
jenny pts/0 2018-09-28 09:43 (192.168.1.3)
pete :1 2018-09-28 08:13 (:1)
So what happens is that Fred logs locks his screen, Jenny clicks on "Log in as another user" and logs in which is fine, but it does not log Fred out. She therefore generates a new display and when you try and VNC, we can only see Freds original lock screen on Display 0 because Jenny has a new Display on 1.