How to change the umask for daemons in Red Hat Enterprise Linux

Solution Verified - Updated -

Issue

  • A security audit says that, the log files created by the daemons are world readable. This needs to be changed as world non-readable or in other words from permission 644 to permission 640.

  • How to change the umask for daemons. This is not about system umask which can be changed from /etc/profile or /etc/.bashrc. We are talking about the umask value inherited by the daemons like httpd, postfix etc.

Environment

  • Red Hat Enterprise Linux 5 and 6 (RHEL)
  • initscripts rpm package

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content