Plug a FAT32 stick into a Linux box, mount it as root and suddenly your own user can’t write to it. chmod and chown don’t help either. FAT simply has no place to store Unix owners and permission bits, so Linux makes them up at mount time.
You choose what it makes up with mount options:
sudo mount -o uid=1000,gid=1000,fmask=0133,dmask=0022 /dev/sdb1 /mnt/usb
ls -l /mnt/usb
According to the mount man page, uid and gid set the owner and group of all files, and default to those of the process that mounts (root, with sudo). umask sets the bits that are not present, dmask does the same for directories only and fmask for regular files only. With the values above, files come out as 644 and folders as 755, owned by user 1000. Find your own numbers with id -u and id -g.
For a disk that’s always attached, the same options go in /etc/fstab:
UUID=XXXX-XXXX /mnt/usb vfat uid=1000,gid=1000,fmask=0133,dmask=0022,nofail 0 0
I’d use nofail on anything removable so the boot doesn’t stall when the stick isn’t there. Get the UUID from lsblk -f.
The caveat: these are rules for the whole disk at once. You can’t make one folder private and another public, and running chmod on a file won’t stick. There’s also a quiet option that makes chmod and chown stop returning errors, but the man page itself says they still fail and adds “Use with caution!”. I’d leave it off, because a silent failure is worse than an honest error.
Further reading: mount manual page: mount options for fat