Hi
I often got issue with samba,
always hard to set it up, but
it seems :
1/ root preexec create a directory /storage/.kodi, thus it belongs to user "root" and to the group "root"
I don't know how you connect to your RPi, but I bet you will not access to your directory permission issue
2/ btw I did not understand why you create a hidden directory called ".kodi", but it is your choice
I don't think it is a real issue here
3/ your directory is public... for testing purpose it is okay, for a clean configuration... it could be better
a configuration that could DO work (tested by myself) :
add this to your smb.conf file:
Code:
[kodi]
browsable = yes # seems obvious isn't it
read only = no # if you want to create or alter files
valid users = osmc # not mandatory, but for security issue...
path = /share/.kodi # what do you want to share
force user = root # THIS is mandatory, root is the owner
root preexec = mkdir -p /share/.kodi # not mandatory att all, but should be launch at least once
force user = root is really mandatory, it tells that all files and directory belongs to root, even if "osmc" is used for connection.
check your configuration file with testparm
restart samba (it take some times)
Code:
$ sudo service samba restart
from windows, connect to shared directory of your RPi using login osmc and password (osmc if you didn't change it)
With this configuration, you see 2 shares (devices and kodi)
and you could create/del/mod everything you want.
BTW : I quit agree with using ssh transfer even if I didn't do it myself.
To be precise, I did not transfer file to my RPi