<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Disable command-line access</title>
<link rel="stylesheet" type="text/css" href="../pintail-mallard-tr.css">
<script type="text/javascript" src="../highlight.pack.js"></script><script>
document.addEventListener('DOMContentLoaded', function() {
  var matches = document.querySelectorAll('code.syntax')
  for (var i = 0; i < matches.length; i++) {
    hljs.highlightBlock(matches[i]);
  }
}, false);</script><script type="text/javascript" src="../yelp.js"></script>
</head>
<body lang="tr" dir="ltr">
<header class="gnome-header"><nav><div class="pagewide">
<a id="home-link" class="gnome-navbar-brand" href="../index.html" title="Go to home page"><h1>GNOME Help</h1></a><details class="gnome-langs gnome-langs-wide"><summary title="Change language" aria-label="Change language"><span class="gnome-langs-current">tr</span></summary><ul>
<li><a href="lockdown-command-line.html.ca">català</a></li>
<li><a href="lockdown-command-line.html.cs">čeština</a></li>
<li><a href="lockdown-command-line.html.de">Deutsch</a></li>
<li><a href="lockdown-command-line.html">English</a></li>
<li><a href="lockdown-command-line.html.es">español</a></li>
<li><a href="lockdown-command-line.html.eu">euskara</a></li>
<li><a href="lockdown-command-line.html.fr">français</a></li>
<li><a href="lockdown-command-line.html.gl">galego</a></li>
<li><a href="lockdown-command-line.html.hr">hrvatski</a></li>
<li><a href="lockdown-command-line.html.id">Indonesia</a></li>
<li><a href="lockdown-command-line.html.it">italiano</a></li>
<li><a href="lockdown-command-line.html.hu">magyar</a></li>
<li><a href="lockdown-command-line.html.nl">Nederlands</a></li>
<li><a href="lockdown-command-line.html.pt_BR">português (Brasil)</a></li>
<li><a href="lockdown-command-line.html.sv">svenska</a></li>
<li><a href="lockdown-command-line.html.tr" aria-current="true">Türkçe</a></li>
<li><a href="lockdown-command-line.html.ru">русский</a></li>
<li><a href="lockdown-command-line.html.uk">українська</a></li>
<li><a href="lockdown-command-line.html.kk">қазақ тілі</a></li>
<li><a href="lockdown-command-line.html.fa" dir="rtl">فارسی</a></li>
<li><a href="lockdown-command-line.html.ko">한국어</a></li>
</ul></details>
</div></nav></header><main><aside class="sidebar sidebar-left"><div class="sidebar-contents"><div class="inner">
<div class="title"><h2><span class="title">İçerik</span></h2></div>
<div class="region"><div class="contents"><ul>
<li class="links"><a href="../system-admin-guide/index.html.tr" title="GNOME System Administration Guide">GNOME System Administration Guide</a></li>
<li class="links"><a href="../system-admin-guide/setup.html.tr" title="Setup">Setup</a></li>
<li class="links"><a href="../system-admin-guide/appearance.html.tr" title="Appearance">Appearance</a></li>
<li class="links"><a href="../system-admin-guide/login.html.tr" title="Login">Login</a></li>
<li class="links"><a href="../system-admin-guide/network.html.tr" title="Network &amp; hardware">Network &amp; hardware</a></li>
<li class="links"><a href="../system-admin-guide/software.html.tr" title="Software">Software</a></li>
<li class="links"><a href="../system-admin-guide/user-settings.html.tr" title="User settings">User settings</a></li>
<li class="links"><a href="../system-admin-guide/sundry.html.tr" title="Other">Other</a></li>
</ul></div></div>
</div></div></aside><aside class="sidebar sidebar-right"><div class="sidebar-sections"><div class="inner">
<div class="title"><h2><span class="title">Bu Sayfada</span></h2></div>
<div class="region"><div class="contents"><ul>
<li class="links "><a href="../system-admin-guide/lockdown-command-line.html.tr#command-prompt" title="Disable the command prompt">Disable the command prompt</a></li>
<li class="links "><a href="../system-admin-guide/lockdown-command-line.html.tr#virtual-terminal" title="Disable dropping to a virtual terminal">Disable dropping to a virtual terminal</a></li>
</ul></div></div>
</div></div></aside><div class="page">
<header><div class="inner pagewide"><div class="trails" role="navigation">
<div class="trail">
<a class="trail" href="../index.html">GNOME</a> » <a class="trail" href="../system-admin-guide/index.html.tr" title="GNOME System Administration Guide">System Administration Guide</a> » <a class="trail" href="../system-admin-guide/user-settings.html.tr" title="User settings">User settings</a> › <a class="trail" href="../system-admin-guide/user-settings.html.tr#lockdown" title="Lock down settings">Lock down settings</a> » </div>
<div class="trail">
<a class="trail" href="../index.html">GNOME</a> » <a class="trail" href="../system-admin-guide/index.html.tr" title="GNOME System Administration Guide">System Administration Guide</a> » <a class="trail" href="../system-admin-guide/software.html.tr" title="Software">Software</a> › <a class="trail" href="../system-admin-guide/software.html.tr#management" title="Management">Management</a> » </div>
</div></div></header><article><div class="hgroup pagewide"><h1 class="title"><span class="title">Disable command-line access</span></h1></div>
<div class="region">
<div class="contents pagewide">
<p class="p">To disable command-line access for your desktop user, you need to make
  configuration changes in a number of different contexts. Bear in mind that the
  following steps do not remove the desktop user's permissions to access a
  command line, but rather remove the ways that the desktop user could access
  the command line.</p>
<div class="list"><div class="inner"><div class="region"><ul class="list">
<li class="list"><p class="p">Set the <span class="code">org.gnome.desktop.lockdown.disable-command-line</span>
      GSettings key, which prevents the user from accessing the terminal or
      specifying a command line to be executed (the <span class="keyseq"><span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd>F2</kbd></span></span> command prompt).</p></li>
<li class="list"><p class="p">Prevent users from accessing the <span class="keyseq"><span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd>F2</kbd></span></span> command prompt.</p></li>
<li class="list"><p class="p">Disable switching to virtual terminals (VTs) with the <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd><span class="var">function key</span></kbd></span></span>
      shortcuts by modifying the X server configuration.</p></li>
<li class="list"><p class="p">Remove <span class="app">Terminal</span> and all other terminal applications from
      the <span class="gui">Activities</span> overview in GNOME Shell. You will also need to
      prevent the user from installing a new terminal application.</p></li>
</ul></div></div></div>
</div>
<section id="command-prompt"><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Disable the command prompt</span></h2></div>
<div class="region"><div class="contents pagewide"><div class="steps"><div class="inner"><div class="region"><ol class="steps">
<li class="steps">
<p class="p">Create the <span class="file">user</span> profile which contains
    the following lines:</p>
<div class="listing"><div class="inner">
<div class="title title-listing"><h3><span class="title"><span class="file">/etc/dconf/profile/user</span></span></h3></div>
<div class="region"><div class="contents"><div class="code"><pre class="contents"><code>user-db:user
system-db:local</code></pre></div></div></div>
</div></div>
<p class="p"><span class="input">local</span> is the name of a
    <span class="sys"><a href="../system-admin-guide/dconf.html.tr" title="Manage user and system settings with dconf">dconf</a></span> database.</p>
</li>
<li class="steps">
<p class="p">Create a <span class="sys">local</span> database for machine-wide settings in
      <span class="file">/etc/dconf/db/local.d/00-lockdown</span>:</p>
<div class="code"><pre class="contents"><code># Specify the dconf path
[org/gnome/desktop/lockdown]

# Disable the command prompt
disable-command-line=true</code></pre></div>
</li>
<li class="steps">
<p class="p">Override the user’s setting and prevent the user from changing it in
      <span class="file">/etc/dconf/db/local.d/locks/lockdown</span>:</p>
<div class="code"><pre class="contents"><code># List the keys used to configure lockdown
/org/gnome/desktop/lockdown/disable-command-line</code></pre></div>
</li>
<li class="steps">
<p class="p">Update the system databases:</p>
<div class="screen"><pre class="contents"><code><span class="prompt output"># </span><span class="input">dconf update</span></code></pre></div>
</li>
<li class="steps"><p class="p">Users must log out and back in again before the system-wide
    settings take effect.</p></li>
</ol></div></div></div></div></div>
</div></section><section id="virtual-terminal"><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Disable dropping to a virtual terminal</span></h2></div>
<div class="region"><div class="contents pagewide">
<p class="p">Users can normally use the
  <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd><span class="var">function
  key</span></kbd></span></span> shortcuts (for example,
  <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd>F2</kbd></span></span>) to switch from
  the GNOME desktop to a virtual terminal.</p>
<p class="p">If the computer is running the <span class="em">X Window System</span>, you can disable
  access to all virtual terminals by adding a <span class="code">DontVTSwitch</span> option
  to the <span class="code">Serverflags</span> section in an X configuration file in the
  <span class="file">/etc/X11/xorg.conf.d/</span> directory.</p>
<div class="steps"><div class="inner"><div class="region"><ol class="steps">
<li class="steps">
<p class="p">Create or edit an X configuration file in
      <span class="file">/etc/X11/xorg.conf.d/</span>. For example,
      <span class="file">/etc/X11/xorg.conf.d/10-xorg.conf</span>:</p>
<div class="listing"><div class="inner">
<div class="title title-listing"><h3><span class="title"><span class="file">/etc/X11/xorg.conf.d/10-xorg.conf</span></span></h3></div>
<div class="region"><div class="contents"><div class="code"><pre class="contents"><code>Section "Serverflags"

Option "DontVTSwitch" "yes"

EndSection</code></pre></div></div></div>
</div></div>
</li>
<li class="steps"><p class="p">Restart the X server for the changes to take effect.</p></li>
</ol></div></div></div>
</div></div>
</div></section><section class="links" role="navigation"><div class="inner">
<div class="hgroup pagewide"></div>
<div class="contents pagewide">
<div class="links guidelinks"><div class="inner">
<div class="title"><h2><span class="title">Daha Çok Bilgi</span></h2></div>
<div class="region"><ul>
<li class="links "><a href="../system-admin-guide/user-settings.html.tr#lockdown" title="Lock down settings">Lock down settings</a></li>
<li class="links "><a href="../system-admin-guide/software.html.tr#management" title="Management">Management</a></li>
</ul></div>
</div></div>
<div class="links seealsolinks"><div class="inner">
<div class="title"><h2><span class="title">Ayrıca Bakınız</span></h2></div>
<div class="region"><ul><li class="links ">
<a href="../system-admin-guide/lockdown-single-app-mode.html.tr" title="Configure single-application mode">Configure single-application mode</a><span class="desc"> — Set up a kiosk-like, single-application system.</span>
</li></ul></div>
</div></div>
</div>
</div></section>
</div>
<div class="clear"></div></article><footer><div class="inner pagewide"><div class="about ui-expander" role="contentinfo">
<div class="yelp-data yelp-data-ui-expander" data-yelp-expanded="false"></div>
<div class="inner">
<div class="hgroup"><h2><span class="title">Hakkında</span></h2></div>
<div class="region"><div class="contents">
<div class="copyrights">
<div class="copyright">© 2014 Petr Kovar</div>
<div class="copyright">© 2014 Ekaterina Gerasimova</div>
<div class="copyright">© 2015 Jana Svarova</div>
</div>
<div class="credits">
<div class="credits-authors">
<div class="title"><span class="title">Yazan(lar):</span></div>
<ul class="credits">
<li>Petr Kovar</li>
<li>Ekaterina Gerasimova</li>
<li>Jana Svarova</li>
</ul>
</div>
<div class="credits-blank"></div>
<div class="credits-blank"></div>
</div>
<div class="license">
<div class="title"><span class="title">Lisans</span></div>
<div class="contents"><p class="p">This work is licensed under a <span class="link"><a href="https://creativecommons.org/licenses/by-sa/3.0/" title="https://creativecommons.org/licenses/by-sa/3.0/">Creative
  Commons Attribution-ShareAlike 3.0 Unported License</a></span>.</p></div>
</div>
</div></div>
</div>
</div></div></footer>
</div></main>
</body>
</html>
