Blob Blame History Raw
<?xml version="1.0" encoding="utf-8"?>
<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="sv">

  <info>
    <link type="guide" xref="software#management"/>
    <revision pkgversion="3.12" date="2014-06-18" status="review"/>

    <credit type="author copyright">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2014</years>
    </credit>
    <credit type="author copyright">
      <name>Ekaterina Gerasimova</name>
      <email>kittykat3756@gmail.com</email>
      <years>2014</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>Förhindra användare från att komma åt kommandoraden.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Anders Jonsson</mal:name>
      <mal:email>anders.jonsson@norsjovallen.se</mal:email>
      <mal:years>2017</mal:years>
    </mal:credit>
  </info>

  <title>Inaktivera kommandoradsåtkomst</title>

  <p>Du kan förhindra användare från att komma åt kommandoraden genom virtuella terminaler och terminalprogram genom att följa stegen nedan.</p>

  <list>
    <item>
      <p>Förhindra användare från att komma åt kommandoprompten <keyseq><key>Alt</key><key>F2</key></keyseq>.</p>
    </item>
    <item>
      <p>Inaktivera hopp till en virtuell terminal (VT).</p>
    </item>
    <item>
      <p>Ta bort <app>Terminal</app> och alla andra terminalprogram från översiktsvyn <gui>Aktiviteter</gui> i GNOME Shell. Du kommer också behöva förhindra användaren från att installera ett nytt terminalprogram.</p>
    </item>
  </list>

<section id="command-prompt">
  <title>Inaktivera kommandoprompten</title>

  <steps>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/>
    <item>
      <p>Skapa en databas <sys>local</sys> för maskinomfattande inställningar i <file>/etc/dconf/db/local.d/00-lockdown</file>:</p>
      <code># Ange dconf-sökvägen
[org/gnome/desktop/lockdown]

# Inaktivera kommandoprompten
disable-command-line=true</code>
    </item>
    <item>
      <p>Åsidosätt användarens inställning och förhindra användaren från att ändra den i <file>/etc/dconf/db/local.d/locks/lockdown</file>:</p>
      <code># Lista de nycklar som används för att konfigurera låsning
/org/gnome/desktop/lockdown/disable-command-line</code>
    </item>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"/>
  </steps>
</section>

<section id="virtual-terminal">
  <title>Inaktivera hopp till en virtuell terminal</title>

  <p>Användare kan normalt använda genvägarna <keyseq><key>Ctrl</key><key>Alt</key><key><var>funktionstangent</var></key></keyseq> (till exempel <keyseq><key>Ctrl</key><key>Alt</key><key>F2</key></keyseq>) för att växla från GNOME-skrivbordet till en virtuell terminal.</p>

  <p>Om datorn kör <em>X Window System</em> kan du inaktivera åtkomst till alla virtuella terminaler genom att lägga till flaggan <code>DontVTSwitch</code> till avsnittet <code>Serverflags</code> i filen <file>/etc/X11/xorg.conf.d</file>.</p>

  <steps>
    <item>
      <p>Skapa eller redigera en X-konfigurationsfil i <file>/etc/X11/xorg.conf.d</file>:</p>
      <code>Section "Serverflags"

Option "DontVTSwitch" "yes"

EndSection</code>
    </item>
    <item>
      <p>Starta om GDM för att ändringen ska börja gälla.</p>
    </item>
  </steps>

</section>

<!-- TODO: add section for removing applications from the Activities overview. -->
</page>