I’m trying to mount a NetApp CIFS share to one of our servers and I keep getting “Permission Denied” printed to stderr and
NT_STATUS_WRONG_PASSWORD
printed to the runningdmesg
.root@xxxehpvld05 ~ $ mount.cifs -vv //zhp-nas.xxx.com/perspectives /mnt/secure/cifs -o credentials=/etc/cifs.creds mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) root@xxxehpvld05 ~ $ dmesg | tail CIFS VFS: cifs_mount failed w/return code = -13 Status code returned 0xc000006a NT_STATUS_WRONG_PASSWORD CIFS VFS: Send error in SessSetup = -13 CIFS VFS: cifs_mount failed w/return code = -13 Status code returned 0xc000006a NT_STATUS_WRONG_PASSWORD CIFS VFS: Send error in SessSetup = -13 CIFS VFS: cifs_mount failed w/return code = -13 Status code returned 0xc000006a NT_STATUS_WRONG_PASSWORD CIFS VFS: Send error in SessSetup = -13 CIFS VFS: cifs_mount failed w/return code = -13
The
smbclient
command, however works without issue, using the same exact credentials file:root@xxxehpvld05 ~ $ smbclient -L //zhp-nas.xxx.com/perspectives -A /etc/cifs.creds Domain=[XXX] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- IPC$ IPC Remote IPC ZHPSubmit-dev Disk [...snip...]
It seems like if one works the other should as well especially since the credentials file also specifies the domain name.
Answer
With out more info I can’t say for sure but I have seen this issue when connecting to an older windows server that was running an older protocol version. Remember CIFS is considered a “Dialect” (type) of SMB. There are other types and older setups don’t use CIFS.
Basically it’s like saying two people are speaking. One Spanish and one English, and your trying to force the English speaker to understand Spanish when clearly he doesn’t.
SMBclient uses a different dielect for security negotiations. (or at least detects differently).
Try
mount -t cifs //path/thing/ /mount/point -o username=user,password=pass,sec=ntlm
and see what happens. (sec=ntlm is the important part)
Attribution
Source : Link , Question Author : Bratchley , Answer Author : coteyr