NGINX
TMA-NGINX-2.3.1
Ensure NGINX directories and files are owned by root
ÉlevéeNiveau 1Automatiséenginx
Description
The NGINX configuration directory and all contained files must be owned by the root user and group to prevent unauthorized modification. Counts files and directories under /etc/nginx not owned by root:root; expects 0. Evaluated on the merged configuration printed by `nginx -T` (all included files; needs permission to read them). CIS marks this recommendation Manual; the automated check implements its audit procedure.
Méthode de vérification
Méthode d'audit: Commande shell
shell
[ -d /etc/nginx ] || exit 1; find /etc/nginx \( ! -user root -o ! -group root \) -print 2>/dev/null | wc -l- Sortie attendue
0
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
chown -R root:root /etc/nginx
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- nginxpermissions
- Référence
- CIS NGINX Benchmark v3.0.0 - 2.3.1 Ensure NGINX directories and files are owned by root
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target nginx