Sumanth V | 16 Feb 2010 21:01
Picon

HAL fdi policy for access control

Hi,

I have a requirement of mounting an external usb with NTFS filesystem and allowing restricting its access only to the console user(even restricting access to a single group is fine). I am able to mount the usb by using the fdi policy below which I got it from the Archwiki page. However, I want to restrict access to a single user or a group. Is there anything that I'm missing here. I did search on the internet, but couldn't find anything in this regard. I am using RHEL 5.2 64 bit machine currently.

Plz help!!!


fdi policy -

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<!-- This .fdi files makes sure that normal users are able to write
to a automatically mounted USB drive -->

<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ntfs">
<match key=" <at> block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
</match>
</match>
</device>
</deviceinfo>


Thanks,
Sumanth

<div><p>Hi,<br><br>
I have a requirement of mounting an external usb with NTFS filesystem
and allowing restricting its access only to the console user(even
restricting access to a single group is fine). I am able to mount the
usb by using the fdi policy below which I got it from the Archwiki page. However, I want to restrict access to a single user or a group. Is there anything that I'm
missing here. I did search on the internet, but couldn't find anything
in this regard. I am using RHEL 5.2 64 bit machine currently.<br><br>Plz help!!!<br><br><br>
fdi policy - <br><br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- -*- SGML -*- --&gt;<br><br>
&lt;!-- This .fdi files makes sure that normal users are able to write<br>
        to a automatically mounted USB drive --&gt;<br><br>
&lt;deviceinfo version="0.2"&gt;<br>
    &lt;device&gt;<br>
        &lt;match key="volume.fstype" string="ntfs"&gt;<br>
            &lt;match key=" <at> block.storage_device:storage.hotpluggable" bool="true"&gt;<br>
                &lt;merge key="volume.fstype" type="string"&gt;ntfs-3g&lt;/merge&gt;<br>
                &lt;merge key="volume.policy.mount_filesystem" type="string"&gt;ntfs-3g&lt;/merge&gt;<br>
            &lt;/match&gt;<br>
        &lt;/match&gt;<br>
    &lt;/device&gt;<br>
&lt;/deviceinfo&gt;<br><br><br>
Thanks,<br>
Sumanth
</p></div>

Gmane