On Tue, 2003-04-22 at 10:33, Michael Schwendt wrote:
Use:
/dev/hda6 /mnt/shared vfat users,quiet,gid=users,umask=007,noexec 0 0
Thank you Michael! That was exactly what I was looking for. Can you explain the octal values the umask, fmask and dmask take? They seem to be kind of the reverse of what you would give as an argument to chmod. (I mean I know that 4 is read, 2 is write and 1 is execute, but why does umask=007 have the same effect as chmod 770? That was what was throwing me.)
...because it's a "mask". The bits set in the mask (just like umask in your shell) prevent files from showing those permissions.
mode 0777 = 000 421 421 421 mask 0027 = 000 000 020 421
result 0750 = 000 421 401 000
The result contains only the permissions which you can "see" past the mask. At least, that's one way to think about it.