Kodi Community Forum

Full Version: SAMBA linux share issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[SOLUTION IN THE END]

I'm trying to access an external USB HD that is attached to a local router and I'm getting this:

Code:
11:38:01 T:146358272   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://xbmc:[email protected]/nat'
                                            unix_err:'2' error : 'No such file or directory'
11:38:01 T:146358272   ERROR: GetDirectory - Error getting smb://xbmc:[email protected]/nat/

The server is a Samba 3.0.24 openwrt package with config:

Code:
[global]
        netbios name = council
        workgroup = jedi
        server string = the nas
        syslog = 10
        passdb backend = smbpasswd
        socket options = TCP_NODELAY
        unix charset = UTF-8
        preferred master = yes
        os level = 20
        invalid users = root
        smb passwd file = /etc/samba/smbpasswd

[nas]
        path = /mnt/nas
        read only = no
        guest ok = no
        create mask = 0700
        directory mask = 0700

I can access a Windows 7 share without any issues from the XBMC.
Tried:
1. upper/lower case changes in the smb:// string
2. changing the netbios name with the IP (windows 7 netbios name is working)
2. using saurik's libsmbclient dyn lib
3. removing guisettings.xml
4. removing Database/*db

I've installed the samba package in Apple TV and I can smbclient -L council without any issues...

[SOLUTION]

Ok, this freaked me out... After removing the userdata directory, it started to give permission denied error. Which was good after 2 days of the same error... Then I couldn't connect to my Windows 7 share any more using xbmc:xbmc but found that I could using XBMC:XBMC (why?!?). As sources.xml were set with the lower case already, i needed to install vim in my Apple TV and edited the file there. Windows share good.
Then I tried the XBMC:XBMC change in the linux share one... No good. But hey, if I could use uppercase in windows, who knows:
ssh router
vi /etc/passwd
changed xbmc to XBMC
echo "" > /etc/samba/smbpasswd
smbpasswd XBMC XBMC
^D
ssh Apple-TV
vi /var/mobile/Library/Preferences/XBMC/userdata/sources.xml
changed the linux share to:
<source>
<name>Movies</name>
<path pathversion="1">smb://XBMC:[email protected]/nas/Movies/</path>
</source>

And I'm happy now... I'll probably have performance issues now... :]

Thanks for any reply on this,
Pirolla.