17
8
I've got many FAT32 drives that I'd like to mount in Ubuntu such that they have permission mode 700 for directories and 600 for all other files. By default, they have 755 for all files, which is not particularly useful since almost no non-directories should be executable, and it screws up version control repos hosted on the drives.
"Back in the day" I would have had the drives listed in /etc/fstab with the umask/dmask I want and there was no such thing as a default. These days, drives automount under their volume names. Which is great, except now I have no idea how to set the default.
I have tried changing the /system/storage/default_options/vfat/mount_options gconf key with no apparently effect. It was 077 initially but the mounted drive reflected a default of 022; changing it and re-inserting the drives resulted in the files still having permission bits of 755.
huh. thought your username looked familiar. i've been using mutagen for years. welcome to Super User. :) – quack quixote – 2010-04-25T08:22:28.163
also, which version of ubuntu are you using? i'd assume Karmic, but you might be talking about the Lucid RC, or even something earlier. – quack quixote – 2010-04-25T08:32:11.993
Clarified in the title. I was hoping it wouldn't matter, since I do have some older installations, and something like mounting shouldn't be changing every six months consarnit. – None – 2010-04-25T08:34:16.060
unfortunately the HAL stuff has undergone quite a few changes in recent versions. 9.04 and previous are probably the same; some solutions might apply to all; but 9.10 uses DeviceKit and HAL is deprecated. i don't trust any of the DBus/HAL/DeviceKit stuff to stay stable at the moment. – quack quixote – 2010-04-25T08:40:41.037
1
comment from pagin: I think the issue is much more fundamental: I want to modify the umask for automounting regardless which device connects to the computer. I.e. if a friend of mine drops by with his usb stick and I want just to copy some file from this one, I want them automatically to be transferred as chmod 750, not 000 or 777, 770 or whatever. There should really be an option somewhere to configure this...
– quack quixote – 2010-06-11T19:24:00.327