SMB + SMB2: Accessing shares return an error after prolonged idle period

Solution Verified - Updated -

Issue

  • After a period of inactivity, accessing a SMB v1 share returns Permission denied for a user, but not others
  • After a period of inactivity, accessing a SMB v2+ share returns Input/output error for a user, but not others.
  • The following error may be returned in the logs: CIFS VFS: Unexpected lookup error -5
  • Periodically accessing a share avoids the errors.
  • Shares have to be unmounted and then remounted to regain access.

Environment

  • Red Hat Enterprise Linux
    • 6
    • 7
    • 8
  • SMB
  • SMB2

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