Centos error with CIFS / DFS

Issues related to configuring your network
Post Reply
liberodark
Posts: 1
Joined: 2019/04/01 08:16:24

Centos error with CIFS / DFS

Post by liberodark » 2019/04/01 08:18:29

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

aks
Posts: 2731
Joined: 2014/09/20 11:22:14

Re: Centos error with CIFS / DFS

Post by aks » 2019/04/03 18:25:51

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.

ruckola
Posts: 2
Joined: 2019/05/23 12:28:46

Re: Centos error with CIFS / DFS

Post by ruckola » 2019/05/23 13:21:56

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

User avatar
TrevorH
Forum Moderator
Posts: 25810
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos error with CIFS / DFS

Post by TrevorH » 2019/05/23 16:29:00

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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

ruckola
Posts: 2
Joined: 2019/05/23 12:28:46

Re: Centos error with CIFS / DFS

Post by ruckola » 2019/05/28 08:09:36

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

Post Reply