SV-278386r1171910_rule
V-278386
SRG-APP-000090
NGNX-APP-000250
CAT II
10
By default, nginx.conf has file permissions set to admins only. Performing the chmod command will set file permissions on nginx.conf.
sudo chmod 600 /etc/nginx/nginx.conf
This example command will set read/write permissions for the owner only.
Check the current permissions of nginx.conf:
ls -l /etc/nginx/nginx.conf
-rw-r--r-- 1 root root 0 May 23 15:04 /etc/nginx/nginx.conf
If file has write permissions for anyone other than the owner, this is a finding.
V-278386
False
NGNX-APP-000250
Check the current permissions of nginx.conf:
ls -l /etc/nginx/nginx.conf
-rw-r--r-- 1 root root 0 May 23 15:04 /etc/nginx/nginx.conf
If file has write permissions for anyone other than the owner, this is a finding.
M
5720