4.2.3 Ensure permissions on all logfiles are configured

Information

Log files stored in /var/log/ contain logged information from many services on the system, or on log hosts others as well.

Rationale:

It is important to ensure that log files have the correct permissions to ensure that sensitive data is archived and protected.

Solution

Run the following commands to set permissions on all existing log files:

find /var/log -type f -exec chmod g-wx,o-rwx '{}' + -o -type d -exec chmod g-w,o-rwx '{}' +

Additional Information:

You may also need to change the configuration for your logging software or services for any logs that had incorrect permissions.

See Also

https://workbench.cisecurity.org/files/2971

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(10), CSCv6|5.1, CSCv7|13

Plugin: Unix

Control ID: 224538e226c8c96b011ac564af7607fcbe1a4b2e5c0d4f695280a07cea4e8a37