1.145 RHEL-10-400290

Information

RHEL 10 must be configured so that all local files and directories must have a valid owner.

GROUP ID: V-281075RULE ID: SV-281075r1165580

Unowned files and directories may be unintentionally inherited if a user is assigned the same user identifier (UID) as the UID of the unowned files.

Solution

Configure RHEL 10 so that all local files and directories must have a valid owner.

Either remove all files and directories that do not have a valid user from the system, or assign a valid user to all unowned files and directories on RHEL 10 with the "chown" command:

$ sudo chown <user> <file>

See Also

https://workbench.cisecurity.org/benchmarks/26403