Dirtbag's Blog

FAIL to mount cifs volume with return code = -13

[ link: sambafail | tags: samba linux | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]

I was trying to so a cifs mount of a remote volume that I KNEW was there, but kept getting an error like: CIFS VFS: cifs_mount failed w/return code = -13

So I was trying to mount a remote cifs volume like so

zim ~ #mount -t cifs //192.168.15.100/somevolume /mnt/ -o user=jason

and It was failing with the following:

mount: block device //192.168.15.100/somevolume is write-protected, mounting read-only
mount: cannot mount block device //192.168.15.100/somevolume read-only

In the logs, I saw the following errors:

Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
 CIFS VFS: Send error in SessSetup = -13
 CIFS VFS: cifs_mount failed w/return code = -13
  

After much googling, I found that the problem was.....

the program mount.cifs was missing from my system. I dont know why mount couldn't have told me that. But anway, after I did an install of mount.cifs, the mount worked as expected.

-db

Like this article? Buy me a beer!