Unable to mount a CIFS share using mount.cifs in RHEL 7

Solution Verified - Updated -

Issue

When attempting to mount a CIFS share in RHEL 7.x after patching for BADLOCK, it fails to mount returning STATUS_ACCESS_DENIED.
Attempting to mount the same share in RHEL 6.x is successful.
Attempting to connect to the share via smbclient in RHEL 7.x is successful.

In RHEL 7.x, permissions are required from the root all the way to the share you attempt to mount.
The expectation is that permissions should only be required for the share you wish to directly mount which works correctly in RHEL 6.x.
The results are that if read / execute permissions are missing anywhere between the root of the share and the share you are trying to mount, the mount will fail in RHEL 7.x.

Environment

  • Red Hat Enterprise Linux (RHEL) 7.2
  • NAS Filer exporting DFS CIFS share.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content