CIFS does not enable forceuid/forcegid options by default when mounting with uid=/gid= options in RHEL8.5 or later
Issue
- After updating
kernel-4.18.0-348.el8or later,/proc/mountsshowsnoforceuid/noforcegidoptions for CIFS mounts. forceuid/forcegidmount options are not enabled by default even thoughuid=/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.