<?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-repartitioning" xml:lang="eu">

  <info>
    <link type="guide" xref="user-settings#lockdown"/>
    <link type="seealso" xref="dconf-lockdown"/>
    <revision pkgversion="3.14" date="2014-12-10" status="review"/>

    <credit type="author copyright">
      <name>Jana Svarova</name>
      <email>jana.svarova@gmail.com</email>
      <years>2014</years>
    </credit>
    <credit type="copyright editor">
      <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>Eragotzi erabiltzaileek disko-partizioak aldatu ditzaten.</desc>
  </info>

  <title>Desgaitu partizioak moldatzea</title>

  <p><sys>polkit</sys> enables you to set permissions for individual
  operations. For <sys>udisks2</sys>, the utility for disk management services,
  the configuration is located at
  <file>/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy</file>. This
  file contains a set of actions and default values, which can be overridden by
  system administrator.</p>

  <note style="tip">
    <p><file>/etc</file> fitxategiko <sys>polkit</sys> konfigurazioak <file>/usr/share</file> fitxategian ageri den konfigurazioa indargabetzen du.</p>
  </note>

  <steps>
    <title>Desgaitu partizioak moldatzea</title>
    <item>
      <p>Create a file with the same content as in
      <file>/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy</file>:
      <cmd>cp /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy /etc/share/polkit-1/actions/org.freedesktop.udisks2.policy</cmd></p>
      <note style="important">
        <p>Ez aldatu <file>/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy</file> fitxategia, zure aldaketak paketeen hurrengo eguneratzean gainidatziko dira.</p>
      </note>
    </item>
    <item>
      <p>Delete any actions you do not need from within the
      <code>policyconfig</code> element and add the following lines to the
      <file>/etc/polkit-1/actions/org.freedesktop.udisks2.policy</file>
      file:</p>
      <listing>
<code>
  &lt;action id="org.freedesktop.udisks2.modify-device"&gt;
     &lt;description&gt;Aldatu unitatearen ezarpenak&lt;/description&gt;
     &lt;message&gt;Autentifikazioa behar da unitate-ezarpenak aldatzeko&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_any&gt;no&lt;/allow_any&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
    &lt;/defaults&gt;
&lt;/action&gt;
</code>
      </listing>
      <p>Ordeztu <code>no</code> kodea <code>auth_admin</code> kodearekin ekintza gauzatzeko boterea erro-erabiltzaileak soilik izan dezan.</p>
    </item>
    <item>
      <p>Gorde aldaketak.</p>
    </item>
  </steps>

  <p>When the user tries to change the disk settings, the following message is
  shown: <gui>Authentication is required to modify drive settings</gui>.</p>

</page>
