I too have an ASUS router. An RT-N56U.
The smb.conf work around does not work for me either. I have done the latest firmware upgrade from ASUS. It didn’t help. I’m using an rpi2 as the osmc client.
I added the mounts in the /etc/fstab file and they work when I do a mount -a from a telnet session. However I get errors during the osmc boot up and it’s not working there either. I’m not that much of a Linux expert to fix that problem. Some dependency issue I’m sure.
@baracudaz could you please edit your post.
The lines should be added to .smb/smb.conf if it is for the kodi based browsing.
If you refer to fstab based or actually the osmc samba server write that explicitly.
Thanks
Thank you… I finally have an SMB connection to my Airport Extreme.
edit: that was short lived, now it kicks me a error: Connection timed out. haha, I can’t win lately.
More info, it times out only when scanning into library (MySQL) but seems to play one of (the few) movies it scanned in without any issue. Looks like it resets the connection after every movie it scans in… unix_err:'68' error: 'Connection reset by peer'
Of course I did add client ntlmv2 auth = yes option to local samba conf file .smb/smb.conf
However this was not that obvious with troubleshooting as smbclient would still fail with the same error:
server does not support EXTENDED_SECURITY but 'client use spnego = yes and 'client ntlmv2 auth = yes' session setup failed: NT_STATUS_ACCESS_DENIED
Digging into strace output reveals smbclient is ignoring the local file and taking the global setting file:
Well yes and no. It doesn’t harm to have it in both files. But the Kodi internal smb client will only use .smb/smb.conf but if you also use the command line in parallel (e.g. for troubleshooting you need it in both.
Thanks for highlighting.
Thanks guys. This fix helped me out!
Edit: oops, not really fixed. All the files appeared in osmc, all episodes doubled, nothing plays back. RT-AC66U.Weirdly I can access files on that Asus SMB server on other devices (ie Windows 10) but not on OSMC.
Edit2: It was actually my mistake. Messed up the first conf. This here made it work again:
Adding the above to ~/.smb/smb.conf didn’t work for me. I did a reboot but OSMC still asks for a password.
Occording to my log, I had the following samba packages installed when the system still worked. Does anyone know how to downgrade to these packages? I get an error.
It is not really helpful if you post your identical question in two threads!
There is no simple way to downgrade as the files have been removed from the debian deb, otherwise we already have indicated that as a solution.
Sorry guys, I’m new here and no pro in Linux. Just thought that my issue was related to both topics because it was about samba malfunctions after an OSMC update. Anyway, I understand downgrading is no option.
Yesterday I tried to access an SMB share. I have been using this share for a long time but now suddenly I get this screen asking me for credentials:
The SMB share is unchanged and the subfolder Videos is public, so no password should be required. @baracudaz that’s why I added a -N to your command (=skip password prompt). smbclient -L //CORK_DESKTOP -U Guest -N
I also entered the IP because that’s what OSMC uses. The result is different.
Thanks a lot @fzinken. This works and is three times faster when navigating through the folders. In step 5 you forgot mount though.
I didn’t prefer a mount as solution, but because of the speed, I’ll keep it.
Maybe you can answer my main doubt: Will I be able to access the mount without hassle if the server is turned off and on again? Like when the server shuts down while OSMC is running, or it isn’t started up yet when OSMC is.
The auto mount should ensure that but not really guaranteed.
But if the server is not always available it is not a server. Why not making the RPi the server for your Videos?