TMAegis
More rules for linux

TMA-LNX-PERM-GROUP

Ensure permissions on /etc/group are configured

HighLevel 1Automatedlinux

Description

/etc/group must be 644 root:root.

How it is checked

Audit method: Shell command

shell
stat -Lc '%a %U %G' /etc/group
Expected output
644 root root

How it is fixed

Fix method: Shell command

shell
chown root:root /etc/group && chmod 644 /etc/group

Properties

Operating systems
ubuntu-22.04, ubuntu-24.04, rocky-9
Tags
permissionsfiles
Reference
CIS Linux Benchmark - System File Permissions (verify section number for your distro release)

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target linux