Unable to access Samba Shares (Freenas NTLMv1) - Resolved

Hey folks,

Just wanted to post a fix to an issue I had recently for anyone running similar setups and who have minimal experience with unix/linux.

Platform
Software: Freenas (v9.10+) and OSMC (latest version as at 9th March 2017)
Hardware: Freenas Mini, Rasberry PI3

Issue
After an OSMC update (and also possibly after a Freenas update as both occurred around similar times), OSMC was unable to access any of my freenas samba (cifs) shares. The error on osmc was always “Wrong Password”

Root cause
NTLMv1 was no longer supported as a protocol on the latest Freenas version (Freebsd is the OS). OSMC has the following as default in the smb.conf file:

client use spnego = no
client ntlmv2 auth = no

Investigations
Looking at the log.smbd file on Freenas showed the following error:

[2017/03/09 20:49:51.695465, 2] …/libcli/auth/ntlm_check.c:424(ntlm_password_check)
ntlm_password_check: NTLMv1 passwords NOT PERMITTED for user ****
[2017/03/09 20:49:51.696003, 2] …/source3/auth/auth.c:315(auth_check_ntlm_password)
check_ntlm_password: Authentication for user [root] -> [root] FAILED with error NT_STATUS_WRONG_PASSWORD

Resolution
Update OSMC /home/osmc/.smb/smb.conf file to

    client use spnego = yes
    client ntlmv2 auth = yes

Hope this helps any n00bs like myself.

3 Likes

Many thanks DJVege :wink:

well its not so nooby considering you solved it without anyone else filling in :slight_smile: my guess the old rtfm did ye old trick :smiley: