Please refer to the following link for history:
My thanks to those who have wrestled with this problem in the Red Hat forum. This thread has turned away from being Red Hat specific and is more about windows (in linux) and so has become more suitable for the general forum. So here I am...
I am trying to get a windows fat32 partition to automount with permissions set to -rwxrw---- and drwxrw---- (read/write access for the logged in user - execute access only for directories and root). I have attempted this (via mount command - ultimately this will be an fstab entry - by the following (amongst many permutations):
# mount -t vfat /dev/hda1 /mnt/win98 -o rw,noexec,nosuid,fmask=0111,dmask=0,gid=users,iocharset=utf8
# ls -l /mnt/win98
-rwxr-xr-x 1 root users 7 May 14 2001 autoexec.bat
-rwxr-xr-x 1 root users 0 Oct 30 2001 autoexec.bit
-rwxr-xr-x 1 root users 0 Oct 19 2001 autoexec.via
drwxr-xr-x 6 root users 8192 May 14 2001 bitware
-rwxr-xr-x 1 root users 44337 Oct 19 2001 bootlog.prv
-rwxr-xr-x 1 root users 45109 Oct 19 2001 bootlog.txt
-rwxr-xr-x 1 root users 93890 Apr 23 1999 command.com
-rwxr-xr-x 1 root users 30 May 14 17:15 config.sys
... as you can see, this did not work.
(I do not want any bits set for "others", and I want rw- not r-x for user...)
This is a RH9 machine running dual-boot with Win98SE 4.44. The Win98 disk was resized with fips. I note that the partition was not originally fat32 - it was originally fat16 and it has a utility for changing the fs to fat32 which says it has been run. (I have yet to see a win98 machine without this tho).
The users are all members of the "users" group.
The above mount options work when mounting a memory stick, and also when mounting a vfat partition. So what is so special about the win98 partition?
give users rw access using the umask option, but I also have to set the last bit (x access) so the directories will work. Naturally, I'm not too keen on users running executables on the win32 partition.