View Issue Details

IDProjectCategoryView StatusLast Update
0005426CentOS-6cifs-utilspublic2012-01-17 16:23
Status newResolutionopen 
PlatformHP Compaq 8200 EliteOSCentosOS Version6.2
Product Version6.2 
Target VersionFixed in Version 
Summary0005426: Unable to Mount CIFS Drive - Permission Denied
DescriptionI am not able to mount a CIFS drive under Centos 6.2. The error message I receive is below. Multiple users in our office have reported a similar issue with Centos 6.2, while the Centos 5.x boxes work just fine.

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

This is the command that I use: sudo mount -t cifs //Server/Share /G -o username=USER,sec=ntlmv2

The same command works when I boot into a Centos 6.0 kernel.
Steps To ReproduceTry to mount the CIFS drive under Centos 6.2. It happens every time.
TagsNo tags attached.




2012-01-16 20:55

manager   ~0014214

> The same command works when I boot into a Centos 6.0 kernel.

This suggests that the kernel, more specifically the cifs module, is responsible rather than cifs-utils (provided you did not roll back to an earlier version).

The cifs version:
   kernel 2.6.32-71.el6 => 1.63
   kernel 2.6.32-220 => 1.68

What is the output of :

stat /G

Also try increasing debugging by:

echo 7 > /proc/fs/cifs/cifsFYI

and see if useful info gets logged.


2012-01-16 21:21

reporter   ~0014215

Thanks for your quick reply.

[thahn@pc ~]$ stat /G
  File: `/G'
  Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd00h/64768d Inode: 2359299 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-16 12:00:41.131029315 -0600
Modify: 2011-07-20 12:47:33.676436997 -0500
Change: 2011-07-20 12:47:33.676436997 -0500

[root@timhahn-pc log]# tail -f messages
Jan 16 15:20:19 timhahn-pc kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Jan 16 15:20:19 timhahn-pc kernel: CIFS VFS: Send error in SessSetup = -13
Jan 16 15:20:19 timhahn-pc kernel: CIFS VFS: cifs_mount failed w/return code = -13


2012-01-17 16:23

manager   ~0014228

Looks like the remote machine is not taking the credentials.

I strongly suggest you try the samba mailing list to get help:

It is quite active and samba developers are there all the time. Just provide sufficient info such as the OS, kernel version, cifs version, etc in addition to the description of the problem.

Issue History

Date Modified Username Field Change
2012-01-16 18:48 tahahn New Issue
2012-01-16 20:55 toracat Note Added: 0014214
2012-01-16 21:21 tahahn Note Added: 0014215
2012-01-17 16:23 toracat Note Added: 0014228