Blame system-admin-guide/es/dconf-lockdown.page

Packit 6d2957
Packit 6d2957
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="dconf-lockdown" xml:lang="es">
Packit 6d2957
Packit 6d2957
  <info>
Packit 6d2957
    <link type="guide" xref="user-settings#lockdown"/>
Packit 6d2957
    <link type="guide" xref="setup"/>
Packit 6d2957
Packit 6d2957
    <revision version="0.1" date="2012-05-21" status="review"/>
Packit 6d2957
    <revision pkgversion="3.8" date="2013-04-26" status="review"/>
Packit 6d2957
    <revision pkgversion="3.15" date="2015-02-13" status="review"/>
Packit 6d2957
Packit 6d2957
    <credit type="author copyright">
Packit 6d2957
      <name>Ryan Lortie</name>
Packit 6d2957
      <email>desrt@desrt.ca</email>
Packit 6d2957
      <years>2012</years>
Packit 6d2957
    </credit>
Packit 6d2957
    <credit type="copyright editor">
Packit 6d2957
      <name>Ekaterina Gerasimova</name>
Packit 6d2957
      <email>kittykat3756@gmail.com</email>
Packit 6d2957
      <years>2013, 2015</years>
Packit 6d2957
    </credit>
Packit 6d2957
Packit 6d2957
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
Packit 6d2957
Packit 6d2957
    <desc>Use el modo bloqueo en <sys its:translate="no">dconf</sys> para evitar que los usuarios cambien determinadas opciones de configuración.</desc>
Packit 6d2957
  
Packit 6d2957
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
Packit 6d2957
      <mal:name>Daniel Mustieles</mal:name>
Packit 6d2957
      <mal:email>daniel.mustieles@gmail.com</mal:email>
Packit 6d2957
      <mal:years>2017</mal:years>
Packit 6d2957
    </mal:credit>
Packit 6d2957
  </info>
Packit 6d2957
Packit 6d2957
  <title>Bloquear opciones de configuración concretas</title>
Packit 6d2957
Packit 6d2957
  
Packit 6d2957
Packit 6d2957
  

To lock down a <sys its:translate="no">dconf</sys> key, you will

Packit 6d2957
  need to create a <file its:translate="no">locks</file> subdirectory in the
Packit 6d2957
  keyfile directory.  The files inside this directory contain a list of keys to
Packit 6d2957
  lock. Just as with the
Packit 6d2957
  keyfiles, you may add any
Packit 6d2957
  number of files to this directory. Here is an example of what one might look
Packit 6d2957
  like:

Packit 6d2957
Packit 6d2957
  <steps>
Packit 6d2957
    <title>Bloquear una opción de configuración</title>
Packit 6d2957
    <item>
Packit 6d2957
      

Before you can lock down a key, you need to set it. This example shows

Packit 6d2957
      how to lock <link xref="desktop-background">a background setting</link>
Packit 6d2957
      once it has been set. At this point, you should have
Packit 6d2957
      <link xref="dconf-profiles">a <sys>user</sys> profile</link> and
Packit 6d2957
      <link xref="dconf-keyfiles">a keyfile</link> with the settings that you
Packit 6d2957
      want to lock down.

Packit 6d2957
    </item>
Packit 6d2957
    <item>
Packit 6d2957
      

Cree una carpeta llamada <file its:translate="no">/etc/dconf/db/local.d/locks</file>.

Packit 6d2957
    </item>
Packit 6d2957
    <item>
Packit 6d2957
      

Cree un archivo en la carpeta <file its:translate="no">/etc/dconf/db/local.d/locks/</file> y ponga una clave por línea. Por ejemplo, cree <file its:translate="no">/etc/dconf/db/local.d/locks/00_default-wallpaper</file>:

Packit 6d2957
Packit 6d2957
# evitar cambios en el fondo
Packit 6d2957
/org/gnome/desktop/background/picture-uri
Packit 6d2957
/org/gnome/desktop/background/picture-options
Packit 6d2957
/org/gnome/desktop/background/primary-color
Packit 6d2957
/org/gnome/desktop/background/secondary-color
Packit 6d2957
Packit 6d2957
    </item>
Packit 6d2957
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
Packit 6d2957
  </steps>
Packit 6d2957
Packit 6d2957
  <note>
Packit 6d2957
    

As of <app its:translate="no">dconf</app> 0.7.4, lockdown is only

Packit 6d2957
    supported on a per-key basis for performance reasons; you may not yet lock
Packit 6d2957
    entire subpaths. There are plans to address this in future releases.

Packit 6d2957
  </note>
Packit 6d2957
Packit 6d2957
</page>