You are not logged in.
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
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
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
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 521.63 KiB (Peak: 530.73 KiB) ]