Page 1 of 1

Centos error with CIFS / DFS

Posted: 2019/04/01 08:18:29
by liberodark
im in Centos 7

Im try to connect me on DFS server but not work.

Code: Select all

sudo mount -t cifs -v '//192.168.35.21/mondomain.fr/Mondomain France/Mondomain France/SI/Sécurité/PS' /media/nas -o domain=mondomain.fr,username=mondomain.FR\p.n@mondomain.fr
I unfortunately still have a mistake mount error(13): Permission denied I will try another local file to see same result with a / home / pc / NAS this is the message of my logs

Code: Select all

Apr 1 09:26:03 ds-czc7448w17 kernel: Status code returned 0xc000006d STATUS_LOGON_FAILURE Apr 1 09:26:03 ds-czc7448w17 kernel: CIFS VFS: Send error in SessSetup = -13 Apr 1 09:26:03 ds-czc7448w17 kernel: CIFS VFS: cifs_mount failed w/return code = -13
I also tried to add this:

Code: Select all

-o vers=3.0,sec=ntlmssp
Because when I do not put it I have this message in the logs:

Code: Select all

Apr 1 09:27:55 ds-czc7448w17 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. Apr 1 09:27:55 ds-czc7448w17 kernel: Status code returned 0xc000006d STATUS_LOGON_FAILURE Apr 1 09:27:55 ds-czc7448w17 kernel: CIFS VFS: Send error in SessSetup = -13 Apr 1 09:27:55 ds-czc7448w17 kernel: CIFS VFS: cifs_mount failed w/return code = -13
You have any idea ?

Best Regard

Re: Centos error with CIFS / DFS

Posted: 2019/04/03 18:25:51
by aks
First of all, hasn't DFS has been dropped by Microsoft? I seems to recall that from the last time I looked (although I'm by no way a M$ guy).
Secondly, try with a different encoding - use names that "fit" into ASCII 8 bit. You would have thought this was sorted by now, but Windows has a different default encoding than Linux (CentOS defaults to UTF8, unless you tell it otherwise). It's worth a ago.
Thirdly I'm not aware of mount.cifs "obeying" vers options (isn't that for mount.nfs?)
Fourthly isn't sec=ntlmssp = NTLMv2 password hashing, doesn't Windows default to v3 now?
This
Apr 1 09:27:55 ds-czc7448w17 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. Apr 1 09:27:55 ds-czc7448w17 kernel: Status code returned 0xc000006d STATUS_LOGON_FAILURE Apr 1 09:27:55 ds-czc7448w17 kernel: CIFS VFS: Send error in SessSetup = -13 Apr 1 09:27:55 ds-czc7448w17 kernel: CIFS VFS: cifs_mount failed w/return code = -13
seems to suggest that is the case.
As far as I recall (which fades with time) naming in Windows is complex (like just about anything in Windows). Using <WORKGROUP|NT_DOMAIN>\<USERNAME> is different from <USERNAME>@<NT_DOMAIN>. Suspect you should not use both.
And lastly, try it with setenforce permissive - just to make sure SELinux is not stopping you.

Re: Centos error with CIFS / DFS

Posted: 2019/05/23 13:21:56
by ruckola
Hello Liberodark,

I'm having the same kind of trouble here. It's driving me nuts. Did you manage to find a solution?
I also found this: https://access.redhat.com/solutions/3354541. Although I can' t access that topic (since I'm not a RH customer), the status-tag makes me suspect that there is some kind of bug...

Kind regards,

Ruckola

Re: Centos error with CIFS / DFS

Posted: 2019/05/23 16:29:00
by TrevorH
You can read that KB entry with a free Redhat Developer subscription but it mostly says:
Bugzilla 1545639 has been created for this issue, but has already been closed by engineering as 'NOT A BUG'.
and recommends that you contact Netapp to get them to fix their NAS.

Re: Centos error with CIFS / DFS

Posted: 2019/05/28 08:09:36
by ruckola
Thanks for your tip & info! It confirms the direction of my suspicion. Unfortunately, the netapp filer within our company is managed by another party, so this will require some politics I'm afraid...