SV-214274r1212183_rule
V-214274
SRG-APP-000516-WSR-000174
AS24-U1-000970
CAT II
10
Find the htpasswd file using the AuthUserFile directive:
cat /<path_to_file>/httpd.conf | grep -i "AuthUserFile" | awk '{print $2}'
Ensure the SA or web manager account owns the htpasswd file.
Ensure permissions are set to "550".
Locate the htpasswd file using the AuthUserFile directive by entering the following command:
cat /<path_to_file>/httpd.conf | grep -i "AuthUserFile" | awk '{print $2}'
If the above command produces any output, run the "ls -l" command on it; for example:
ls -l /etc/httpd/.htpasswd
Permissions should be: r-x r - x - - - (550)
If permissions on the password file are greater than "550", this is a finding.
Verify the owner is the SA or web manager account.
If another account has access to this file, this is a finding.
V-214274
False
AS24-U1-000970
Locate the htpasswd file using the AuthUserFile directive by entering the following command:
cat /<path_to_file>/httpd.conf | grep -i "AuthUserFile" | awk '{print $2}'
If the above command produces any output, run the "ls -l" command on it; for example:
ls -l /etc/httpd/.htpasswd
Permissions should be: r-x r - x - - - (550)
If permissions on the password file are greater than "550", this is a finding.
Verify the owner is the SA or web manager account.
If another account has access to this file, this is a finding.
M
3996