Everyday I backup new photos and videos from my android mobile with the app syncme via samba onto an external USB hdd connected to my raspberry pi 2 with osmc 3.18.13-1-osmc.
This my smb.conf
cat /etc/samba/smb.conf | grep -v ^# | grep -v '^$'|less
[global]
config file = /etc/samba/smb-local.conf
workgroup = WORKGROUP
security=user
follow symlinks = yes
wide links = no
unix extensions = no
lock directory = /var/cache/samba
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log level = 1
map to guest = bad user
usershare template share = automount template
read raw = Yes
write raw = Yes
strict locking = no
min receivefile size = 16384
use sendfile = true
aio read size = 2048
aio write size = 2048
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
[osmc]
browsable = yes
read only = no
valid users = osmc
path = /home/osmc
comment = OSMC Home Directory
[automount template]
browseable = yes
-valid = no
valid users = osmc
path = %P
hide files = /$RECYCLE.BIN/System Volume Information/desktop.ini/thumbs.db/
include = /etc/samba/smb-shares.conf
sudo tail -f /var/log/
[2015/07/21 13:16:21, 0] ../source3/smbd/server.c:1189(main)
smbd version 4.1.17-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
[2015/07/21 13:16:21.282506, 0] ../lib/util/become_daemon.c:136(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connectionsprocess_usershare_file: stat of /var/lib/samba/usershares/usbhdd1ext4 failed. Permission denied
less /var/lib/samba/usershares/usbhdd1ext4
#VERSION 2
path=/media/usbhdd1ext4
comment=Auto-mount Volume
usershare_acl=S-1-5-21-2361391763-375630901-2423467364-1000:f
guest_ok=n
sharename=usbhdd1ext4
osmc@osmc:~$ ls -la /media/usbhdd1ext4/2backup | grep vidbackup
drwxr-xr-x 2 osmc osmc 4096 Jul 16 13:12
Any idea what I am overlooking? My guess is:
This needs to be changed:
usershare_acl=S-1-5-21-2361391763-375630901-2423467364-1000:f
Thank you very much in advance!