My Oracle Support Banner

mount error(13): Permission denied when mount windows share folder in UEK3 (Doc ID 2088538.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 6.6 with Unbreakable Enterprise Kernel [3.8.13] and later
All Platforms

Symptoms

Mount windows share folder in UEK3 machine fails with "mount error(13): permission denied" error.

Assume the windows machine share folder is :DB_Backup in this case. Here is the error you will meet:

# mount -t cifs //<win server ip addr>/DB_Backup -o username=<user>,password=<passwd>,ver=1,domain=<your.domain> /backup
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

 From dmesg output, it doesn't  work with NTLMSSP:

# dmesg -c
fs/cifs/cifsfs.c: Devname: //<win server ip addr>/DB_Backup/ flags: 0
fs/cifs/connect.c: Domain name set
@ fs/cifs/connect.c: Username: <user>
fs/cifs/connect.c: file mode: 0x1ed  dir mode: 0x1ed
fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 20 with uid: 0
fs/cifs/connect.c: UNC: \\<win server ip addr>\DB_Backup
fs/cifs/connect.c: Socket created
fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x1b58
fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 21 with uid: 0
fs/cifs/connect.c: Existing smb sess not found
fs/cifs/cifssmb.c: secFlags 0x81
@ fs/cifs/cifssmb.c: NTLMSSP only mechanism, enable extended security
fs/cifs/transport.c: For smb_command 114
fs/cifs/transport.c: Sending smb: smb_len=78
fs/cifs/connect.c: Demultiplex PID: 31545
fs/cifs/connect.c: RFC1002 header 0xcd
fs/cifs/transport.c: cifs_sync_mid_result: cmd=114 mid=1 state=4
fs/cifs/cifssmb.c: Dialect: 2
fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
fs/cifs/asn1.c: OID len = 8 oid = 0x1 0x2 0x348 0x1bb92
fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
fs/cifs/cifssmb.c: negprot rc 0
@ fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x8001e3fc TimeAdjust:
-10800
fs/cifs/sess.c: sess setup type 3
fs/cifs/sess.c: ntlmssp session setup phase 1
fs/cifs/transport.c: For smb_command 115
fs/cifs/transport.c: Sending smb: smb_len=228
fs/cifs/connect.c: RFC1002 header 0x205
fs/cifs/transport.c: cifs_sync_mid_result: cmd=115 mid=2 state=4
Status code returned 0xc0000016 NT_STATUS_MORE_PROCESSING_REQUIRED
fs/cifs/netmisc.c: Mapping smb error code 0xc0000016 to POSIX err -5
fs/cifs/sess.c: UID = 2050
fs/cifs/sess.c: bleft 215
fs/cifs/sess.c: serverOS=Windows Storage Server 2008 R2 Essentials 7601
Service Pack 1
fs/cifs/sess.c: serverNOS=Windows Storage Server 2008 R2 Essentials 6.1
fs/cifs/sess.c: ntlmssp session setup phase 3
fs/cifs/transport.c: For smb_command 115
fs/cifs/transport.c: Sending smb: smb_len=548
fs/cifs/connect.c: RFC1002 header 0x23
fs/cifs/transport.c: cifs_sync_mid_result: cmd=115 mid=3 state=4
@ Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
fs/cifs/netmisc.c: Mapping smb error code 0xc000006d to POSIX err -13
fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
fs/cifs/sess.c: ssetup freeing small buf ffff8802c5c60300
CIFS VFS: Send error in SessSetup = -13
fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 21) rc = -13
fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 20) rc = -13
CIFS VFS: cifs_mount failed w/return code = -13

  

Changes

The default for the value of sec has changed over time.
 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.