Help with Samba
#1
I am trying to mount /storage/.kodi in the samba.conf so i can move some files from my windows install over but when i do that its not showing all the files or sub dirs. I am trying to get in the addons folder. This is what i put in the samba.conf

[Kodi]
path = /storage/.kodi
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/.kodi
Image
Reply
#2
Why not use Cyberduck or Filezilla on Windows.
Cyberduck works well for me on a Mac to access the RPi2 using SFTP (SSH File Transfer Protocol)

http://alternativeto.net/software/cyberduck/

Reply
#3
Hi Smile

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
Reply
#4
/etc/samba/smb.conf configuration file
Code:
$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[devices]"
Processing section "[kodi]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = VOID
        netbios name = RPI-2
        unix extensions = No
        load printers = No
        printcap name = /dev/null
        disable spoolss = Yes
        lock directory = /var/cache/samba
        idmap config * : backend = tdb
        printing = bsd
        print command = lpr -r -P'%p' %s
        lpq command = lpq -P'%p'
        lprm command = lprm -P'%p' %j

[devices]
        path = /media
        valid users = osmc
        force user = root
        read only = No

[kodi]
        path = /share/.kodi
        valid users = osmc
        force user = root
        read only = No
        root preexec = mkdir -p /share/.kodi
Reply

Logout Mark Read Team Forum Stats Members Help
Help with Samba0