/usr/share/help/es/system-admin-guide/lockdown-repartitioning.page is in gnome-user-docs-es 3.28.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | <?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="es">
<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>Prevent the user from changing disk partitions.</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Daniel Mustieles</mal:name>
<mal:email>daniel.mustieles@gmail.com</mal:email>
<mal:years>2017</mal:years>
</mal:credit>
</info>
<title>Desactivar cambios en el particionado</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>La configuración de <sys>polkit</sys> en <file>/etc</file> prevalece sobre la distribuida por los paquetes en <file>/usr/share</file>.</p>
</note>
<steps>
<title>Desactivar cambios en el particionado</title>
<item>
<p>Cree un archivo con el mismo contenido que <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>No modifique el archivo <file>/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy</file> ya que los cambios se sobrescribirán con la siguiente actualización del paquete.</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>
<action id="org.freedesktop.udisks2.modify-device">
<description>Modify the drive settings</description>
<message>Authentication is required to modify drive settings</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</code>
</listing>
<p>Reemplace <code>no</code> por <code>auth_admin</code> si quiere asegurarse de que sólo el usuario root podrá llevar a cabo la acción.</p>
</item>
<item>
<p>Guardar los cambios.</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>
|