Create a new group and add both you and your wife to it(a user can be a member of multiple groups), and use that group for the permissions on the mount.
I’ve added ,gid=100 and made sure my wife and are both in that group, but no go. The permissions on the drive as mounted are
drwxr-xr-x 18 root root 32768 1969-12-31 19:00 disk-4
so there’s no write access for group or world. There must be somewhere this is set to those permissions.
I was mistaken about the umask option. It normally changes the permissions of newly-created files, but when mounting a FAT filesystem, it apparently sets permissions on existing files and directories too per here. My only thought is that you set the umask to a four-digit number, and all the examples I’ve seen are three-digit numbers. Try setting the gid to the users gid and set umask to 002. You don’t really want to enable write permission for everyone, including users that shouldn’t be logged in.
I have seen both three digit and four digit umask numbers, so that’s why I had four, but I had previously tried it with three digits as well.
Tried this just now (I’ve been incrementing disk-# in case it was just not updating the previous mount), but directory permissions are unchanged
/dev/sda5 /media/disk-8 vfat quiet,defaults,rw,umask=002,gid=100 0 0
Tried it with umask=000 also, with the same result.
Hmm, apparently it is sometimes better to use dmask/fmask than umask. Try with dmask=027,fmask=137 or dmask=000,fmask=111
auto,users,uid=1000,gid=100,dmask=027,fmask=137 0 0
Those are from official Ubutnu documentation.
Sheesh, is this a Ubutnu thing? Whenever I update my system, I backup a lot of files to a certain partition. After 10 years using several flavors of Linux, but mostly Slackware, I have several fstab files. I grepped them for vfat and the only think in them are these two lines.
noauto,user 0 0
auto,users,rw 1 2
The first one is what I’ve written myself, the second are set up during installation (which explains the 1 2) but they have always worked.
Also, make sure you remount it after changing the fstab
umount /dev/sda5
mount /dev/sda5
And “drwxr-xr-x 18 root root 32768 1969-12-31 19:00 disk-4” means the directory /media/disk-4 has drwxr-xr-x permissions. That doesn’t affect the contents of the vfat stuff inside, the directory itself is under linux. If you’re checking permissions, do it on a file inside the vfat partition.
I’ve been making additional directories, and mounting into them, in case that was causing problems (I’m up to disk-10). Also, I’ve been trying
cat > dum
or
mkdir dumd
from within the disk-4, etc. directories after running “sudo mount -a”. All the subdirectories also have permissions set to drwxr-xr-x. The dmask,fmask suggestions didn’t help any.
I’ve got a question up over a LinuxForums as well.
Success!
I completely rebooted with
/dev/sda5 /media/disk2 vfat auto,users,uid=1000,gid=100,dmask=000,fmask=111 0
in fstab, and the permssions are set to allow writing.
Logged in as my wife, and she can write also. Also, in Thunderbird my old emails all show up now.