文件操作 - lockdown-command-line.page
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/help/gl/system-admin-guide/lockdown-command-line.page
编辑文件内容
<?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="gl"> <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>Evita que os usuarios accedan á liña de ordes.</desc> <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright"> <mal:name>Fran Diéguez</mal:name> <mal:email>frandieguez@gnome.org</mal:email> <mal:years>2010-2018</mal:years> </mal:credit> </info> <title>Desactivar o acceso á liña de ordes</title> <p>You can prevent users from being able to access the command-line through virtual terminals and terminal applications by following the steps described below.</p> <list> <item> <p>Prevent users from accessing the <keyseq><key>Alt</key><key>F2</key></keyseq> command prompt.</p> </item> <item> <p>Desactivar o cambio á terminal virtual (VT).</p> </item> <item> <p>Remove <app>Terminal</app> and all other terminal applications from the <gui>Activities</gui> overview in GNOME Shell. You will also need to prevent the user from installing a new terminal application.</p> </item> </list> <section id="command-prompt"> <title>Desacetiva a liña de ordes</title> <steps> <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/> <item> <p>Create a <sys>local</sys> database for machine-wide settings in <file>/etc/dconf/db/local.d/00-lockdown</file>:</p> <code># Especifica a ruta de dconf [org/gnome/desktop/lockdown] # Desactiva a liña de ordes disable-command-line=true</code> </item> <item> <p>Override the user’s setting and prevent the user from changing it in <file>/etc/dconf/db/local.d/locks/lockdown</file>:</p> <code># List the keys used to configure lockdown /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>Disable dropping to a virtual terminal</title> <p>Users can normally use the <keyseq><key>Ctrl</key><key>Alt</key><key><var>function key</var></key></keyseq> shortcuts (for example, <keyseq><key>Ctrl</key><key>Alt</key><key>F2</key></keyseq>) to switch from the GNOME desktop to a virtual terminal.</p> <p>If the computer is running the <em>X Window System</em>, you can disable access to all virtual terminals by adding a <code>DontVTSwitch</code> option to the <code>Serverflags</code> section in the <file>/etc/X11/xorg.conf.d</file> file.</p> <steps> <item> <p>Create or edit an X configuration file in <file>/etc/X11/xorg.conf.d</file>:</p> <code>Section "Serverflags" Option "DontVTSwitch" "yes" EndSection</code> </item> <item> <p>Reinicie GDM para que os cambios se apliquen.</p> </item> </steps> </section> <!-- TODO: add section for removing applications from the Activities overview. --> </page>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件