4.2.4 Ensure permissions on all logfiles are configured (Scored)

Level 1 - Server 
Level 1 - Workstation

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

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

Run the following command and verify that other has no permissions on any files and group does not have write or execute permissions on any files:

# find /var/log -type f -ls

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

# chmod -R g-wx,o-rwx /var/log/*

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

  • ubuntu1604/4/2/4.txt
  • Last modified: 2017/05/03 01:36
  • by 127.0.0.1