TMA-LNX-PERM-PASSWD
Ensure permissions on /etc/passwd are configured
AltaNivel 1Automatizadalinux
Descripción
/etc/passwd must be 644 root:root.
Cómo se verifica
Método de auditoría: Comando de shell
shell
stat -Lc '%a %U %G' /etc/passwd- Salida esperada
644 root root
Cómo se corrige
Método de corrección: Comando de shell
shell
chown root:root /etc/passwd && chmod 644 /etc/passwdPropiedades
- Sistemas operativos
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Etiquetas
- permissionsfiles
- Referencia
- CIS Linux Benchmark - System File Permissions (verify section number for your distro release)
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target linux