Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-03-16 12:10:44

philg
Member
Registered: 2007-03-16
Posts: 2

[Solved] specifying mount options for thunar-volman

Hi,

I would like to set fmask and dmask options for automounting things like usb drives, currently when plugging in a usb driver with a fat filesystem all files have 755 permissions, I would like them to have 644 permissions.

Using thunar-volman 0.1.2 and xfce 4.4.0

Thanks for any help

Offline

#2 2007-03-31 17:31:00

brainx
Member
Registered: 2007-03-31
Posts: 2

Re: [Solved] specifying mount options for thunar-volman

Hi Phil,

the permissions are not set by either volume manager.

Assuming you are using Linux, you have to modify your
/etc/devfsd.conf configuration file to add lines as follows:

REGISTER  sda1  PERMISSIONS  root.users  0664
.... etc etc

where "sda1" obviously refers to a device (i.e. /dev/sda1) like a usb stick.

Offline

#3 2007-06-25 12:44:00

philg
Member
Registered: 2007-03-16
Posts: 2

Re: [Solved] specifying mount options for thunar-volman

Sorry, you misunderstood me. I'm not looking to set the permissions of the file representing the device, I'm trying to set permissions for the files within the file system of the device.

I know its been a while since this thread was created, but once I realised I was contemplating on installing gnome just for the sake of having configurable mount options I knew I had to do something. I've found that the mount options are hard-set in exo (hopefully this will change as it matures) so a patch and re-compile is required.

--- exo-0.3.2/exo-mount/exo-mount-hal.c.orig    2007-06-24 21:39:34.000000000 +0100
+++ exo-0.3.2/exo-mount/exo-mount-hal.c    2007-06-24 21:42:17.000000000 +0100
@@ -676,6 +676,11 @@
               /* however this one is FreeBSD specific */
               options[n++] = g_strdup ("longnames");
             }
+          else if (strcmp(device->fsoptions[m], "fmask=") == 0
+                && strcmp(device->fstype, "vfat") == 0)
+            {
+              options[n++] = g_strdup_printf("fmask=133");
+            }
         }
     }
 

Offline

Board footer

Powered by FluxBB