CIFS does not enable forceuid/forcegid options by default when mounting with uid=/gid= options in RHEL8.5 or later

Solution Verified - Updated -

Issue

  • After updating kernel-4.18.0-348.el8 or later, /proc/mounts shows noforceuid/noforcegid options for CIFS mounts.
  • forceuid/forcegid mount options are not enabled by default even though uid=/gid= mount options are specified.
  • Unintentional user/group who is not specified with uid=/gid= mount options owns files on a CIFS volume.

Environment

  • Red Hat Enterprise Linux 8.5 or later
  • Red Hat Enterprise Linux 9

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