hald and write permissions for external drives

Asked by Marcin Giedz on 2009-06-22

Hi

I've got external RAID (kind of NAS) with ext3/ext4 file system. When I plug it in USB system finds correctly and mounts device under /media/disk with hald: mounted /dev/sdd1 on behalf of uid 1001 (1001 is my local id). However when I open Dolphin/Konquerror I can't create any file/dir because of "Permission denied". Device is mounted under /media/disk with root:root and 755.

Of course I can do: sudo chmod 777 /media/disk but this is not a solution for "regular users" who don't know about the terminal. Is there any way to perhaps create policy for hald to change default permission for external drive based on vendor id for example?

I know that the simplest way is to format with VFAT but I don't want to do this.

Thanks
Marcin

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu hal Edit question
Assignee:
No assignee Edit question
Last query:
2009-06-22
Last reply:
2009-06-22
Sam_ (and-sam) said : #1

Not really an idea, because a unix filesystem keeps it's original permissions, which permissions the mount point has is irrelevant for this matter, but maybe PolicyKit can help.
Without terminal policy management is done via PolicyKit GUI (in system administration menu).
https://wiki.ubuntu.com/DesktopTeam/Specs/PolicyKitIntegration
http://hal.freedesktop.org/docs/PolicyKit/

Can you help with this problem?

Provide an answer of your own, or ask Marcin Giedz for more information if necessary.

To post a message you must log in.