mount error(13): Permission denied mounting CIFS

General support questions
Post Reply
dadep
Posts: 4
Joined: 2008/07/04 09:32:40

mount error(13): Permission denied mounting CIFS

Post by dadep » 2016/07/20 13:08:48

Hello,
I'm new of this forum and have a problem mounting cifs share (shared by win2003 server) to my test CentOS 7 box.

I have already tried all tips/trick/workaround founded by google but any of these as worked.

My fstab line is the following
//veeamserver/val /winshare cifs sec=ntlm,user,rw,suid,credentials=/root/secret.txt 0 0

credential.txt is
username=MYUSER
password=MYPASSWD

Also mount.cifs //veeamserver/val /winshare not works

smbclient -L veeamserver
and smbclient //veeamserver/val /winshare
are working

I'm working as root.

"mount -a" writes following in /var/log/messages
Jul 20 15:29:44 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Jul 20 15:29:44 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Jul 20 15:29:44 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13

Does anyone can help me ?

thanks in advance
Davide

dadep
Posts: 4
Joined: 2008/07/04 09:32:40

Re: mount error(13): Permission denied mounting CIFS

Post by dadep » 2016/07/20 13:51:55

Have found this https://goo.gl/4HBF1R post
and using sudo (even though I'm working as root) I'm able to manually mount my CIFS share.
sudo mount.cifs //veeamserver/val /winshare -o username=centos,sec=ntlm

Now the questionm is how to make fstab working.

Tnx.

poky
Posts: 108
Joined: 2013/03/27 12:18:03

Re: mount error(13): Permission denied mounting CIFS

Post by poky » 2016/07/20 18:22:19

/etc/fstab:

//192.168.x.y/val /winshare cifs auto,_netdev,x-systemd.automount,sec=ntlm,user,rw,suid,credentials=/root/secret.txt 0 0


credential.txt:

username=MYUSER
password=MYPASSWD
workgroup=MYWORKGROUPNAME
domain=MYWORKGROUPNAME


This article is a good read:
https://wiki.centos.org/TipsAndTricks/WindowsShares

dadep
Posts: 4
Joined: 2008/07/04 09:32:40

Re: mount error(13): Permission denied mounting CIFS

Post by dadep » 2016/07/22 07:43:32

Poky,
is not working.

dmesg reports:
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[155434.173507] CIFS VFS: Send error in SessSetup = -13
[155434.173597] CIFS VFS: cifs_mount failed w/return code = -13

poky
Posts: 108
Joined: 2013/03/27 12:18:03

Re: mount error(13): Permission denied mounting CIFS

Post by poky » 2016/07/22 20:34:42

- Permissions on secret.txt file: -rw-------
- Temporaly disable selinux:
setenforce 0
- Please check whitespace in /root/secret.txt

marthyr
Posts: 5
Joined: 2015/07/06 20:59:49
Location: México City
Contact:

Re: mount error(13): Permission denied mounting CIFS

Post by marthyr » 2016/07/30 02:37:00

Hello,

I noticed you are invoking disctinct files:
/veeamserver/val /winshare cifs sec=ntlm,user,rw,suid,credentials=/root/secret.txt 0 0

credential.txt is....


Is your credential file credential.txt or secret.txt ?

Post Reply