Skip to contentSkip to conversation

connecting to windows server with SMB2

DISCUSSION Ashish Sangwan 3 participants 4 messages Jul 10, 2014 – Jul 11, 2014

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

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

2014-07-10 14:26 GMT+04:00 Ashish Sangwan <[email protected]>:

Quoted 5 lines

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

Quoted 7 lines

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!!

Did you tries without "sec=" option at all?

If yes, you should set "echo 1 > /proc/fs/cifs/cifsFYI', try to mount and collect dmesg output and send it to the list.

Signature · 2 lines
Best regards,
Pavel Shilovsky.
#2 lore raw
In reply to Ashish Sangwan

In order to sec=ntlmv2 succeed, you will need this patch on the Windows 7 box.
http://support.microsoft.com/kb/957441/en-us

For smb2 (vers=2.0), sec=ntlmssp (which is the default) should succeed against a Windows 7 box.

Would it be possible to attach a wireshark trace of the exchange?

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!!

#3 lore raw
In reply to Ashish Sangwan

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!!