When mounting DOS/Windows filesystems you have a number of options that effect who can access the files and who owns them
uid - sets the user that owns the files/directories
gid - sets the group that owns the files/directories
fmask - sets the access bits on files
dmask - sets the access bits on directories
For the fmask and dmask they are similar to what you would use with chmod however the bits themselves are reversed but the order of user/group/other is the same
eg
1 removes the execute bit
2 removes the write bit
4 removes the read bit
Handy lookup table
Code:
0 = rwx
1 = rw-
2 = r-x
3 = r--
4 = -wx
5 = -w-
6 = --x
7 = ---
So a fmask=000 gives everyone access to read, write and execute
And fmask=177 gives the owner read and write but not execute and everyone else has no access