ntfs USB HDD permissions

Richard Hughes hughsient at gmail.com
Sun Apr 9 05:40:50 PDT 2006


On Sun, 2006-04-09 at 08:31 -0400, Vladimir wrote:
> On Sat, 2006-04-08 at 23:06 +0300, George Billios wrote:
> > -------- Original Message  --------
> > From: Vladimir <vlad_st at sympatico.ca>
> > To: hal at lists.freedesktop.org
> > Subject: ntfs USB HDD permissions
> > Date: Sat Apr 08 2006 20:09:39
> > 
> > > 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
> > > 
> > > _______________________________________________
> > > hal mailing list
> > > hal at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/hal
> > > 
> > 
> > 
> > The problem is gnome-mount.
> > 
> > This is the new kid on the block which is used in FC5 to mount/umount
> > volumes and guess what....
> > 
> > It doesn't check at hal properties at all! The idea in the future
> > (probably in 2010+ checking from the progress in gnome-mount cvs --
> > hasn't been updated since 01/03/2006!) is that gnome-mount will take the
> > extra parameters from gconf and you will be able to choose them also by
> > right-clicking on a volume BUT for now you have no luck expect if you
> > mount manually the volumes!
> > 
> > There is an open bug in fedora for this but... no response, no reply, no
> > will to do something.
> > 
> > Hope I made things clear!
> 
> Thanks very much, George
> Will keep an eye on this until 2010+ ;-)
> Best Regards,
> Vladimir

David, any guys working on this component at rh?

Richard.



More information about the hal mailing list