Can't access NAS from Rpi2

the PI2 positive 2017.08

osmc@osmc-salon:~$ grep VERSION_ID /etc/os-release
VERSION_ID=“2017.08-1”

Yes saw that from the logs. How about the Pi3?

no. that stays in 2017.07-1. I prefer no to touch the working one.
By the way, I updated the RPI2 from 2017.07-1 this morning, before it didn’t work either.

Well than your problem might be different.
You still could try the suggestions from @Tom_Doyle but maybe first check debug logs if you see anything

Hi,

If its working on your pi3s you could try this:

copy /home/osmc/.smb/smb.conf on the pi3 and save it as:

/home/osmc/.kodi/smb/user.conf on one of the pi2s

Thanks Tom.

Hi Tom, I did the change to ~/.kodi/.smb/user.conf, I restarted the Pi but the shares are not working. Only if I allow “Guest Login” in the ASUS Router I’m able to see the NAS folders.

/home/osmc/.kodi/.smb

-rw-r–r-- 1 osmc osmc 217 Sep 1 08:49 user.conf
-rw-r–r-- 1 osmc osmc 154 Sep 1 08:54 smb.conf

[global]
lock directory = /home/osmc/.kodi/.smb/
client max protocol = SMB3
name resolve order = bcast host
include = /home/osmc/.kodi/.smb/user.conf
client use spnego = no
client ntlmv2 auth = no

Regards.

Hi,

Please disable Guest login and provide more debug logs.

Thanks Tom.

Hi Tom, here is the log. https://paste.osmc.tv/ofewobahog

Regards

09:48:12.804 T:1679815664   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://USERNAME:PASSWORD@192.168.1.1/Extras'
                                            unix_err:'d' error : 'Permission denied'
09:48:12.804 T:1958191104   DEBUG: ------ Window Init (DialogSettings.xml) ------
09:48:12.805 T:1958191104   DEBUG: CSettingsManager: requested setting (user.name) was not found.
09:48:12.806 T:1958191104   DEBUG: CSettingsManager: requested setting (user.password) was not found.
09:48:12.806 T:1958191104   DEBUG: CSettingsManager: requested setting (user.rememberpassword) was not found.

try changing: client NTLMv2 auth = no to client NTLMv2 auth = yes

failing that check your username and password is correct.

Thanks Tom.

Hi, in ~/.kodi/.smb/user.conf??

Regards.

yes

no luck.
current log: https://paste.osmc.tv/votagameza

should I try downgrading¿?¿¿

Hi Tom, no luck. Here is the log: https://paste.osmc.tv/onetuseyez

This solution works for me, but it changes back when i reboot.

Old (working) file:
[global]
preferred master = no
local master = no
domain master = no
client lanman auth = yes
lanman auth = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
lock directory = /home/osmc/.smb/
client use spnego = no
client ntlmv2 auth = no
name resolve order = bcast host

New (non-working) file:
[global]
lock directory = /home/osmc/.kodi/.smb/
client max protocol = SMB3
name resolve order = bcast host
include = /home/osmc/.kodi/.smb/user.conf

My recommendation:

  1. mv .smb/smb.conf .smb/smb.conf.old
  2. nano .kodi/.smb/user.conf
    And add only this lines nothing else

client lanman auth = yes lanman auth = yes client use spnego = no client ntlmv2 auth = no

Than reboot. This change should survive the reboot

1 Like

Hi,

@DavidUcles your log does not appear to show an attempt to access a samba share.
@alexisuceta & DavidUcles try fzinken suggested in post 60.

Thanks Tom.

1 Like

Thank you very much fzinken and Tom, now it is working like before. I really appreciate all your help. One question, for a next update Do I need to verify the changes in the user.conf or is this a permanent change? Thanks.

1 Like

Hi Tom, I followed the suggestion and now it is working like before. Thank you very much again for all your help, you gave us a great support all the time.

Regards.

Should be a permanent change. On the other hand you might can hope for a upgrade of your NAS for better security so that the changes are not needed anymore

1 Like

Cool, thanks again.