When I plug a USB stick/thumbdrive that has been formatted as FAT32 into a Raspberry Pi (running Raspbian) the file permissions default to 644 and I cannot change them.
I need to leave the stick as FAT32 so it can be used back and forward to a Windows system.
I have written a rule using udev but I can't get it to work.
My udev rule looks like this:
# Set up any USB stick for full write access
KERNEL=="sd?1", MODE="0777"
I determined that the rule is getting triggered because I had it renaming the device. It is setting the permissions of the device itself, but not the individual files on the device.
What I am ultimately trying to achieve is the ability to write to the USB stick from PHP.
I feel I am very close to the answer but can't see what I am missing.