This is my problem:
I configured my RPi with Debian:
Samba shares a specific folder, that is readable-writeable-executable from my home network:
/media/
usbmount
automount USB devices when inserted in my RPi, in/media/usb
No users should be logged in to do this
When I insert an USB device, usbmount mount it correctly, so RPi can write on it and a person can READ it through network. BUT no persons are allowed to WRITE on it through network.
Checking permissions on /media/usb
I found that:
- BEFORE usbmount mount device
/media/usb
isrwx-rwx-rwx
- AFTER usbmount mount device
/media/usb
becamerwx-r-r
, so onlyroot
(usbmount work mounting devices as root) can write on it
So I've tryed to change the FS_MOUNTPOINTS=""
line in /etc/usbmount/usbmount.conf
file but I don't know how to force usbmount to automount devices rwx-rwx-rwx
or with "low-user write permission".
MOUNTOPTIONS
entry in/etc/usbmount/usbmount.conf
. Does it containro
?ro
. All the line:MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime"