TMA-LNX-PERM-PASSWD
Ensure permissions on /etc/passwd are configured
HochStufe 1Automatisiertlinux
Beschreibung
/etc/passwd must be 644 root:root.
So wird geprüft
Prüfmethode: Shell-Befehl
shell
stat -Lc '%a %U %G' /etc/passwd- Erwartete Ausgabe
644 root root
So wird behoben
Behebungsmethode: Shell-Befehl
shell
chown root:root /etc/passwd && chmod 644 /etc/passwdEigenschaften
- Betriebssysteme
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- permissionsfiles
- Referenz
- CIS Linux Benchmark - System File Permissions (verify section number for your distro release)
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target linux