[CentOS] Lock Screen in Gnome and using keyboard

Thu Apr 6 15:08:49 UTC 2017
Jonathan Billings <billings at negate.org>

On Thu, Apr 06, 2017 at 02:46:12PM +0200, Daniel Ruiz Molina wrote:
> I need to reconfigure Gnome in CentOS for avoiding that a normal user could
> lock screen using task bar option and/or "Super L" key (Windows Key + L).
> How could I configure Gnome? I need to do that in several computers, so I
> can't do "login" in X environment of each computer, but I need to
> reconfigure executing from command line (multiple SSH connections).


If I understand you correctly, you want to disable the screen lock.

This is done differently in CentOS6 vs. CentOS7 GNOME.

In C7, you'd want to use the 'lockdown' feature in dconf:


Specifically, you'd want to set 'disable-lock-screen' to true in the
/org/gnome/desktop/lockdown' settings.

It's been a while since I did the same thing with C6, but I think you
need to edit a file
/etc/gconf/gconf.xml.mandatory/desktop/gnome/lockdown/%gconf.xml, and
set 'disable_lock_screen' to true.

Jonathan Billings <billings at negate.org>