Hi,
I have OpenSuse 12.1, xfdm, I am trying to set up an automatic mounts of USB HDDs on XFDM and Thunar. As the goal, I’d like to share /mounts through Samba server.
I cannot find in SuSe 12.1 how to set the access permissions to mounted disks if they are mounted by Thunar. I use “Mount Volume” in Thunar, it asks for root password and maps the drives by drive IDs in /media directory. However, it shows different behavior with two disks.
I have two HDDs: one was originally formatted on Linux and has ext3 filesystem, the second one has FAT32 filesystem. When I map them, the first one maps as “root” and has all user/group read/write permissions (probably inherited from the past), but FAT32 is mounted as current user, has FAT32 drive ID as a name and thus does not have access permissions necessary to share the drive on the network.
I checked manually the udisks: I can mount it correctly if I issue a following:
udisks --mount /dev/sdd1 --mount-options “rw, dmask = 000”
- this allows to nicely share the drive on Samba.
I want to get similar effect from Thunar. However, there is no user interface in Thunar to change the mask when it maps the drives.
Besides, it is very inconvenient when the drives are mapped by their cryptic ID strings, but not by their volume label. But I also cannot find how it can be changed in user interface or with any other method.
I cannot find where the scripts executed by Thunar controlling UDisks are located. I tried to modify the /etc/udev/rules.d/…, to add a rule for automount as described here (https://wiki.archlinux.org/index.php/Udev), but there is no effect when the new rule is added.
Any help to configure the automount in such a way that the user, permissions and dmask could be configurable will really help!
Thanks!