[SOLVED] USB is not writable unless sudo after mounting

January 22, 2025, 22:47

iludw1g

its a usb in my rpi5, type vFAT mentioned, i mounted it to /home/user/usb i got this in my /etc/samba/smb.conf: [private] path = /home/user/usb writable = yes read only = no browsable = yes now when i try to access this usb share from my windows pc, i can use username and password to see and view, but i cannot write or edit. furthermore if i login with GUI with <user> and access /home/user/usb from the RPI5 i still cannot write. PERMISSION DENIED. how could i make it so that everyone can read AND write, so i can move and edit files onto this share from my windows PC? i can write with SUDO though. thank you in advance fro your answers!

k9t33n

In the terminal in the pi can you write to it? sudo nano \home/user/usb/test?

iludw1g

the issue is fixed, its a vfat linux doesnt allow to edit perms, you have to set perms when mounting. so i mounted like this and now i can read and write without sudo, its also fine on the smb share
sudo mount -o rw,users,umask=000 /dev/sda1 /home/user/usb

oops.se

FAT (vFAT, exFAT) doesn't have any permission features in the filesystem, thats why it is set in OS level.