I am running Samba v4.2.10-Debian on my Raspberry Pi 2B (running Raspbian Jessie) and have set up a fstab
file to mount my external drive on /dev/sda1
to /media/ECHO
:
/dev/sda1 /media/ECHO auto noatime 0 0
.
My Samba configurations are default except SECURITY = USER
and my share definition.
[ECHO]
comment = ECHO NAS
path = /media/ECHO/
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
read only = no
writeable = yes
I can read/write /media/ECHO
from my account through SSH, however, when I connect through Samba, I am not allowed to modify anything. However this works if I set uid=justin
in the fstab
(which is not ideal because it wouldn't work for other users).
/media/ECHO
is exFAT (exfat-fuse is installed) and mounted as drwxr-xr-x
owned by root (group and user).
Any help would be appreciated, thanks!
users
group.auto
bydefaults
infstab
. If this works, but you regard it as insecure then you can turn off some of the equivalent optionsrw,suid,dev,exec,auto,nouser,async
. Or you can trygid=users
if this group has the write permissions you require.gid=users
andumask=002
, but thanks to everyone for helping me!