mediumaccess-controlverified ✓
Ensure no duplicate GIDs exist
no-duplicate-gids · RHEL ≥ 8 · 1 impl
Description
No duplicate GIDs may exist.
Rationale
Duplicate GIDs make group-based access controls unreliable.
Check → Remediate
Checkcommand
awk -F: '{print $3}' /etc/group | sort | uniq -d | head -1 | grep -q . && exit 1 || exit 0- expected_exit:
- 0
Remediatemanual
- note:
- Resolve duplicate GIDs by assigning unique GIDs to each group
Framework references
CIS
rhel9 7.2.5rhel10 7.2.5rhel8 7.2.5
STIG
V-281202 / RHEL-10-600470V-258061 / RHEL-09-411110
NIST 800-53
AC-2
Live verification
rhel10:checkrhel8:checkrhel9:check
#gid#groups#integrity