RHEL-06-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_RHEL_6_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|III, CCI|CCI-000366, Rule-ID|SV-218077r603264_rule, STIG-ID|RHEL-06-000346, STIG-Legacy|SV-50443, STIG-Legacy|V-38642, Vuln-ID|V-218077

Plugin: Unix

Control ID: 22b0f1eb2b7c2814bc666db759f5540323c925897ee9fd688ac14cce68b84d65