SMB, SMB2 : STATUS_ACCESS_DENIED for Session setup command

Solution Verified - Updated -

Issue

  • The mount.cifs command fails with EACCES error :

    # mount -t cifs -o credentials=/root/.credentials //192.168.1.5/share /mountpoint
    mount error(13): Permission denied
    
  • smbclient command successfully list share contents with the same credentials.

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • SMB/CIFS
  • Windows Server

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