How to change the default permissions of the "sar" logs when it is created by sysstat?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Issue

  • How to change the default permissions of the "sar" logs when it is created by sysstat?

Resolution

  • Edit "/usr/lib64/sa/sa1" and "/usr/lib64/sa/sa2" to set the required umask.
  • For example: set the following umask to create sar files with 600 permission.

    umask 0077
    

Note : The sa1 and sa2 files are part of the "sysstat" package, therefore these changes will be overwritten when "sysstat" package is updated or re-installed.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.