Permission denied when attempting to mount Windows 7 share in domain environment.

Solution Verified - Updated -

Issue

  • Attempting to mount CIFS share fails with permission denied.
# mount -t cifs //hanyuu-example/hauuauu /mnt/test -o username=user1,domain=domain1
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  • The following messages appear in /var/log/messages:
Apr  1 17:35:34 hanyuu-example kernel: Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
Apr  1 17:35:34 hanyuu-example kernel: CIFS VFS: Send error in SessSetup = -13
Apr  1 17:35:34 hanyuu-example kernel: CIFS VFS: cifs_mount failed w/return code = -13
  • Functions properly when used in a workgroup (non-domain environment).

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.