Blame system-admin-guide/es/lockdown-command-line.page

Packit Bot 4b9ea4
Packit Bot 4b9ea4
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="lockdown-command-line" xml:lang="es">
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <info>
Packit Bot 4b9ea4
    <link type="guide" xref="software#management"/>
Packit Bot 4b9ea4
    <revision pkgversion="3.12" date="2014-06-18" status="review"/>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
    <credit type="author copyright">
Packit Bot 4b9ea4
      <name>Petr Kovar</name>
Packit Bot 4b9ea4
      <email>pknbe@volny.cz</email>
Packit Bot 4b9ea4
      <years>2014</years>
Packit Bot 4b9ea4
    </credit>
Packit Bot 4b9ea4
    <credit type="author copyright">
Packit Bot 4b9ea4
      <name>Ekaterina Gerasimova</name>
Packit Bot 4b9ea4
      <email>kittykat3756@gmail.com</email>
Packit Bot 4b9ea4
      <years>2014</years>
Packit Bot 4b9ea4
    </credit>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
    <desc>Prevent users from accessing the command-line.</desc>
Packit Bot 4b9ea4
  
Packit Bot 4b9ea4
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
Packit Bot 4b9ea4
      <mal:name>Daniel Mustieles</mal:name>
Packit Bot 4b9ea4
      <mal:email>daniel.mustieles@gmail.com</mal:email>
Packit Bot 4b9ea4
      <mal:years>2017</mal:years>
Packit Bot 4b9ea4
    </mal:credit>
Packit Bot 4b9ea4
  </info>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <title>Desactivar el acceso por línea de comandos</title>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

You can prevent users from being able to access the command-line through

Packit Bot 4b9ea4
  virtual terminals and terminal applications by following the steps described
Packit Bot 4b9ea4
  below.

Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <list>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Prevent users from accessing the

Packit Bot 4b9ea4
      <keyseq><key>Alt</key><key>F2</key></keyseq> command prompt.

Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Disable dropping to a virtual terminal (VT).

Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Remove <app>Terminal</app> and all other terminal applications from

Packit Bot 4b9ea4
      the <gui>Activities</gui> overview in GNOME Shell. You will also need to
Packit Bot 4b9ea4
      prevent the user from installing a new terminal application.

Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
  </list>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
<section id="command-prompt">
Packit Bot 4b9ea4
  <title>Desactivar la línea de comandos</title>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <steps>
Packit Bot 4b9ea4
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Create a <sys>local</sys> database for machine-wide settings in

Packit Bot 4b9ea4
      <file>/etc/dconf/db/local.d/00-lockdown</file>:

Packit Bot 4b9ea4
      # Specify the dconf path
Packit Bot 4b9ea4
[org/gnome/desktop/lockdown]
Packit Bot 4b9ea4
Packit Bot 4b9ea4
# Disable the command prompt
Packit Bot 4b9ea4
disable-command-line=true
Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Override the user’s setting and prevent the user from changing it in

Packit Bot 4b9ea4
      <file>/etc/dconf/db/local.d/locks/lockdown</file>:

Packit Bot 4b9ea4
      # List the keys used to configure lockdown
Packit Bot 4b9ea4
/org/gnome/desktop/lockdown/disable-command-line
Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
Packit Bot 4b9ea4
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"/>
Packit Bot 4b9ea4
  </steps>
Packit Bot 4b9ea4
</section>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
<section id="virtual-terminal">
Packit Bot 4b9ea4
  <title>Disable dropping to a virtual terminal</title>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

Users can normally use the

Packit Bot 4b9ea4
  <keyseq><key>Ctrl</key><key>Alt</key><key>function
Packit Bot 4b9ea4
  key</key></keyseq> shortcuts (for example,
Packit Bot 4b9ea4
  <keyseq><key>Ctrl</key><key>Alt</key><key>F2</key></keyseq>) to switch from
Packit Bot 4b9ea4
  the GNOME desktop to a virtual terminal.

Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

If the computer is running the X Window System, you can disable

Packit Bot 4b9ea4
  access to all virtual terminals by adding a DontVTSwitch option
Packit Bot 4b9ea4
  to the Serverflags section in the
Packit Bot 4b9ea4
  <file>/etc/X11/xorg.conf.d</file> file.

Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <steps>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Create or edit an X configuration file in

Packit Bot 4b9ea4
      <file>/etc/X11/xorg.conf.d</file>:

Packit Bot 4b9ea4
      Section "Serverflags"
Packit Bot 4b9ea4
Packit Bot 4b9ea4
Option "DontVTSwitch" "yes"
Packit Bot 4b9ea4
Packit Bot 4b9ea4
EndSection
Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
    <item>
Packit Bot 4b9ea4
      

Reinicie GDM para que los cambios surtan efecto.

Packit Bot 4b9ea4
    </item>
Packit Bot 4b9ea4
  </steps>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
</section>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
Packit Bot 4b9ea4
</page>