Petr Kovar
pknbe@volny.cz 2014
Ekaterina Gerasimova
kittykat3756@gmail.com 2014
Evita que os usuarios accedan á liña de ordes.
Fran Diéguez
frandieguez@gnome.org 2010-2018

# Desactivar o acceso á liña de ordes

You can prevent users from being able to access the command-line through virtual terminals and terminal applications by following the steps described below.

Prevent users from accessing the Alt F2 command prompt.

Desactivar o cambio á terminal virtual (VT).

Remove Terminal and all other terminal applications from the Activities overview in GNOME Shell. You will also need to prevent the user from installing a new terminal application.

# Desacetiva a liña de ordes

Create a local database for machine-wide settings in /etc/dconf/db/local.d/00-lockdown:

# Especifica a ruta de dconf [org/gnome/desktop/lockdown]

# Desactiva a liña de ordes disable-command-line=true

Override the user’s setting and prevent the user from changing it in /etc/dconf/db/local.d/locks/lockdown:

# List the keys used to configure lockdown /org/gnome/desktop/lockdown/disable-command-line

# Disable dropping to a virtual terminal

Users can normally use the Ctrl Alt function key shortcuts (for example, Ctrl Alt F2) to switch from the GNOME desktop to a virtual terminal.

If the computer is running the X Window System, you can disable access to all virtual terminals by adding a `DontVTSwitch` option to the `Serverflags` section in the /etc/X11/xorg.conf.d file.

Create or edit an X configuration file in /etc/X11/xorg.conf.d:

Section "Serverflags"

Option "DontVTSwitch" "yes"

EndSection

Reinicie GDM para que os cambios se apliquen.