OL6-00-000346 - The system default umask for daemons must be 027 or 022.

Information

The umask influences the permissions assigned to files created by a process at run time. An unnecessarily permissive umask could result in files being created with insecure permissions.

Solution

The file '/etc/init.d/functions' includes initialization parameters for most or all daemons started at boot time. The default umask of 022 prevents creation of group- or world-writable files. To set the default umask for daemons, edit the following line, inserting 022 or 027 for [UMASK] appropriately:

umask [UMASK]

Setting the umask to too restrictive a setting can cause serious errors at runtime. Many daemons on the system already individually restrict themselves to a umask of 077 in their own init scripts.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_6_V1R17_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(4), CAT|III, CCI|CCI-000366, Group-ID|V-50665, Rule-ID|SV-64871r1_rule, STIG-ID|OL6-00-000346, Vuln-ID|V-50665

Plugin: Unix

Control ID: 7c4a4cd8beb2d23dcb7dd2f0de9980674e53e32ca10bd6a691c2c6a5eef69212