CIFS mount error on windows server share

General support questions
Post Reply
taliez
Posts: 40
Joined: 2013/12/02 06:32:41

CIFS mount error on windows server share

Post by taliez » 2016/08/07 03:02:39

hi all,


i have issues on my windows share ,

details below

Code: Select all


[root@server mnt]# uname -r
2.6.32-573.8.1.el6.x86_64
[root@server mnt]# uname -a
Linux server 2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 10 18:01:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
 
[root@wservermnt]# more /etc/redhat-release 
CentOS release 6.7 (Final)
[root@server mnt]# smbstatus

Samba version 3.6.23-35.el6_8
PID     Username      Group         Machine                        
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

No locked files

[ 
[root@server mnt]# rpm -qa | grep cifs-utils
cifs-utils-4.8.1-20.el6.x86_64
[root@server mnt]# 




Last login: Sun Aug  7 10:21:23 2016 from server
[root@server ~]# tail -f /var/log/messages
Aug  7 10:27:09 server kernel: CIFS VFS: cifs_mount failed w/return code = -13
Aug  7 10:27:25 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 10:27:25 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 10:27:25 server kernel: CIFS VFS: cifs_mount failed w/return code = -13
Aug  7 10:29:19 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 10:29:19 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 10:29:19 server kernel: CIFS VFS: cifs_mount failed w/return code = -13
Aug  7 10:31:08 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 10:31:08 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 10:31:08 server kernel: CIFS VFS: cifs_mount failed w/return code = -13





mount command used

[root@server mnt]# mount -t cifs //winserver/hare  /mnt/share --verbose -o username=winuser


have re produced this issue on a virtual environment with centos 6.7 and 6.8 with no issue

maybe i miss out something on this server

need assistance and comment

thank you

taliez

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CIFS mount error on windows server share

Post by TrevorH » 2016/08/07 11:49:09

You shoulld run yum update to get your system up to date (and then reboot). You are running a system that's nearly a year out of date and many bugs have been fixed including a supposedly serious one in samba.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

taliez
Posts: 40
Joined: 2013/12/02 06:32:41

Re: CIFS mount error on windows server share

Post by taliez » 2016/08/07 13:11:55

hi sir

updated via yum update all
same issue

Code: Select all



[root@server ~]# uname -r
2.6.32-642.3.1.el6.x86_64

[root@server ~]# more /etc/redhat-release 
CentOS release 6.8 (Final)

root@server ~]# mount.cifs //server/winshare /tmp/  --verbose -o use=winuser
Password: 
mount.cifs kernel mount options: ip=192.168.100.100,unc=\\winserver\winshare,use=winuser,ver=1,user=root,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Error Log (/var/log/messages)
Aug  7 20:53:44 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 20:53:44 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 20:53:44 server kernel: CIFS VFS: cifs_mount failed w/return code = -13
Aug  7 20:54:56 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 20:54:56 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 20:54:56 server kernel: CIFS VFS: cifs_mount failed w/return code = -13
Aug  7 20:57:19 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 20:57:19 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 20:57:19 server kernel: CIFS VFS: cifs_mount failed w/return code = -13
Aug  7 20:57:49 server kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Aug  7 20:57:49 server kernel: CIFS VFS: Send error in SessSetup = -13
Aug  7 20:57:49 server kernel: CIFS VFS: cifs_mount failed w/return code = -13


Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: CIFS mount error on windows server share

Post by Whoever » 2016/08/07 15:32:17

It looks like your Windows server is denying access to the share. I think that you need to look at the configuration of the share on the Windows box.

dlewis1972
Posts: 9
Joined: 2016/09/07 11:43:49

Re: CIFS mount error on windows server share

Post by dlewis1972 » 2016/09/07 12:46:01

I had the same sort of thing but managed to over come it.

It turned out in my case to be a Group policy which was set to Send NTLMv2 responses only. Refuse LM and NTLM. I changed this to Send LM & NTLM -use NTLMv2 session security if negotiated.

Located at: Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options. The policy is called: Network Security: Lan Manager authentication level.

Hope this helps.

Dave.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CIFS mount error on windows server share

Post by TrevorH » 2016/09/07 12:54:16

Are your samba packages up to date?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply