ntfs USB HDD permissions
Vladimir
vlad_st at sympatico.ca
Sat Apr 8 10:09:39 PDT 2006
Hello everybody,
Trying to setup permissions on ntfs USB harddrive on Fedora 5. It gives
access to root only. In accordance to HAL I have to configure policy.
Tried different ways - nothing works. Latest configuration:
Created
file /usr/share/hal/fdi/policy/10osvendor/95-ntfs-permissions.fdi:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<!-- Mount external ntfs drives with user privileges -->
<device>
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<match key="@block.storage_device:storage.no_partitions_hint"
bool="false">
<match key="volume.partition.msdos_part_table_type"
exists="true">
<match key="volume.partition.msdos_part_table_type"
int="0x07">
<merge key="volume.policy.mount_option.umask=022"
type="bool">true</merge>
</match>
</match>
</match>
</match>
</match>
</device>
</deviceinfo>
Restarted haldaemon,
After attaching HDD lshal gives
...
udi = '/org/freedesktop/Hal/devices/volume_uuid_46004880004878C7'
info.hal_mount.mounted_by_uid = 500 (0x1f4) (int)
info.hal_mount.created_mount_point = '/media/Remote_2-1' (string)
volume.policy.mount_option.umask=022 = true (bool)
volume.unmount.valid_options = {'lazy'} (string list)
volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime',
'nodiratime', 'noexec', 'quiet', 'umask='} (string list)
...
and permissions still the same as before:
...
dr-x------ 1 root root 4096 Mar 26 14:00 Remote_2
...
May be there is any other settings or services which overwrite HAL? Any
ideas?
Thanks a lot
Vladimir
More information about the hal
mailing list