Posts: 42
Joined: Fri Feb 05, 2016 6:01 pm

USB write permissions to anyone

Sat Jan 20, 2018 12:23 am


When you normally connect USB to Raspberry it will be automatically mounted under the folder /media/pi/USB01. And permissions on the foler will be:
Owner: pi
Group: pi
Access Control
View content: Anyone
Change content: Only owner
Access content: Anyone

I would like to change "Change content" to Anyone. Is it possible to somehow do it with udev rule. I saw so many posts on the Internet about changing fstab file or doing another mount to some other location. But non of them are good, because they are bound to the exact name of the usb and you have to change it every time.

So far I found this (udev rule), but it is not working:

Code: Select all

KERNEL=="sd*[0-9]", ATTR{removable}=="1", ENV{ID_BUS}=="usb", MODE="0660"

Return to “Raspbian”