TMA-LNX-PERM-PASSWD
Ensure permissions on /etc/passwd are configured
HighLevel 1Automatedlinux
Description
/etc/passwd must be 644 root:root.
How it is checked
Audit method: Shell command
shell
stat -Lc '%a %U %G' /etc/passwd- Expected output
644 root root
How it is fixed
Fix method: Shell command
shell
chown root:root /etc/passwd && chmod 644 /etc/passwdProperties
- 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