Comment 13 for bug 453605

Revision history for this message
Alkis Georgopoulos (alkisg) wrote : Re: Make default mount umasks configurable

Quotting pitti from comment #2:
> We won't change the behaviour in udisks, there needs to be some default after all.

Please completely remove dmask from the vfat/ntfs mount options, like fmask already is (absent).
Patch available at LP #482501.

I assume that dmask=0077 was added at some point in order to protect the contents of the mountpoint?
Nowadays, all user-mounted media is protected by the attributes of the parent directory, /media/username.
guest@pc:~$ ls /media/alkisg
ls: cannot open directory /media/alkisg: Permission denied

Inside /media/username/mountpoint, directories and files should be world-readable to behave better when copied elsewhere (LP #592748), e.g. in ~/Documents, which is supposed to be world-readable by default.
For example, ~/.local is drwx------ but ~/.local/share is drwxr-xr-x,
similarly, /media/username should be drwx------ and /media/username/mountpoint/folders should be drwxr-xr-x.

For people needing a quick workaround, and since none exists yet, here's a really bad one that nevertheless does work for me:
# For the newer udisks2:
sudo sed 's/dmask=[0-9]\{4\}/dmask=0022/' -i /usr/lib/udisks2/udisksd
# For the older udisks:
sudo sed 's/dmask=[0-9]\{4\}/dmask=0022/' -i /usr/lib/udisks/udisks-daemon
# And reboot.

If udisks/udisks2 don't get fixed in some reasonable time, I'll upload patches packages for the LTS Ubuntu releases in the Greek Schools PPA. Unfortunately that'll be a pain, especially for udisks updates.

About configurability in nautilus, I don't think it will be needed if dmask gets removed. And in any case configurability belongs in udisks, not in packages that use udisks, because then every package that uses udisks should provide such an option.

Thanks!