SV-281074r1165577_rule
V-281074
SRG-OS-000080-GPOS-00048
RHEL-10-400285
CAT II
10
Configure RHEL 10 so that all local files and directories have a valid group owner.
Either remove all files and directories from RHEL 10 that do not have a valid group, or assign a valid group to all files and directories on the system with the "chgrp" command:
$ sudo chgrp <group> <file>
Verify RHEL 10 is configured so that all local files and directories have a valid group with the following command:
$ df --local -P | awk {'if (NR!=1) print $6'} | sudo xargs -I '{}' find '{}' -xdev -nogroup
If any files on the system do not have an assigned group, this is a finding.
V-281074
False
RHEL-10-400285
Verify RHEL 10 is configured so that all local files and directories have a valid group with the following command:
$ df --local -P | awk {'if (NR!=1) print $6'} | sudo xargs -I '{}' find '{}' -xdev -nogroup
If any files on the system do not have an assigned group, this is a finding.
M
5733