OmniOSce r151028r, SMB1, SMB2 - Linux Client Mount

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Bronko

Member
May 13, 2016
111
10
18
105
Hi,

time to mention what my experiences are with Linux, CentOS 7.6 (1804) to mount SMB Shares from OmniOSce v11 r151028r based Storage:

Linux Client:
Code:
# mount -t cifs //tanker/staff /mnt/ -o user=user,domain=domain,sec=ntlmv2
Password for user@//tanker/staff:  ********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Log on Linux Client (scroll first line):
Code:
# journalctl -f
kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
kernel: Status code returned 0xc0000022 STATUS_ACCESS_DENIED
kernel: CIFS VFS: Send error in SessSetup = -13
kernel: CIFS VFS: cifs_mount failed w/return code = -13

explicit dialect vers=2.1 or vers=2.0:
Code:
# mount -t cifs //tanker/staff /mnt/ -o user=user,domain=domain,sec=ntlmv2,vers=2.1
Password for user@//tanker/staff:  ********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Code:
# mount -t cifs //tanker/staff /mnt/ -o user=user,domain=domain,sec=ntlmv2,vers=2.0
Password for user@//tanker/staff:  ********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Log on Linux Client:
Code:
kernel: Status code returned 0xc0000022 STATUS_ACCESS_DENIED
kernel: CIFS VFS: Send error in SessSetup = -13
kernel: CIFS VFS: cifs_mount failed w/return code = -13

explicit dialect vers=1.0 is working only (CentOS 7.5 (1804) wasn't quite so retrictive, worked without):
Code:
# mount -t cifs //tanker/staff /mnt/ -o user=user,domain=domain,sec=ntlmv2,vers=1.0
Password for user@//tanker/staff:  ********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

sec=ntlmv2
is mandatory.

OmniOSce r151028 main feature was support of SMB2.1.

What experiences did you have or I'm wrong?
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,141
1,184
113
DE
What happens if you create a local user on OmniOS and connect as this user?
Then try to connect an AD user name@domain (OmniOS member of an AD domain)
 

Bronko

Member
May 13, 2016
111
10
18
105
Same result with local user on OmniOS, but Log Entry is a one liner only:
Code:
kernel: CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-19
or without "vers=" declaration:
Code:
kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
kernel: CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-19
 
Last edited: