Skip to contentSkip to conversation

connecting to windows server with SMB2

DISCUSSION Ashish Sangwan 2 participants 2 messages Jul 16, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Shirish,

LMCompatibilityLevel is set at 2

Regards,
Ashish
------- Original Message -------
Sender : Shirish Pargaonkar<[email protected]> Date : Jul 12, 2014 02:35 (GMT+05:30)
Title : Re: connecting to windows server with SMB2

Can you check the value of the registry setting on the server?

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\LMCompatibilityLevel

Quoted 12 lines · Ashish Sangwan

I am using kernel version 3.8.13 and windows 7.

The below command works successfully:
Linux#> mount -t cifs //107.109.224.147/sharefolder /mnt -o user=a.sangwan -o pass=xxxx -o vers=1.0 -o sec=ntlm

Other than 1.0, all are fail:
Linux#> mount -t cifs //107.109.224.147/sharefolder /mnt -o user=a.sangwan -o pass=xxxx -o vers=2.0 -o sec=ntlm
[ 0][ 64.276000] Status code returned 0xc000006d STATUS_LOGON_FAILURE
[ 0][ 64.284000] CIFS VFS: Send error in SessSetup = -13

Tried with sec=ntlmv2/none/lanman/krb5, none of them worked. Help please!!

#1 lore raw

Can you change it to 3 (or higher upto 5), I think then ntlmv2 will start working.

Quoted 28 lines · Ashish Sangwan

Hi Shirish,

LMCompatibilityLevel is set at 2

Regards,
Ashish
------- Original Message -------
Sender : Shirish Pargaonkar<[email protected]> Date : Jul 12, 2014 02:35 (GMT+05:30)
Title : Re: connecting to windows server with SMB2

Can you check the value of the registry setting on the server?

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\LMCompatibilityLevel

Quoted 12 lines · Ashish Sangwan

I am using kernel version 3.8.13 and windows 7.

The below command works successfully:
Linux#> mount -t cifs //107.109.224.147/sharefolder /mnt -o user=a.sangwan -o pass=xxxx -o vers=1.0 -o sec=ntlm

Other than 1.0, all are fail:
Linux#> mount -t cifs //107.109.224.147/sharefolder /mnt -o user=a.sangwan -o pass=xxxx -o vers=2.0 -o sec=ntlm
[ 0][ 64.276000] Status code returned 0xc000006d STATUS_LOGON_FAILURE
[ 0][ 64.284000] CIFS VFS: Send error in SessSetup = -13

Tried with sec=ntlmv2/none/lanman/krb5, none of them worked. Help please!!