1.342 OL09-00-002513

Information

OL 9 local initialization files must have mode 0740 or less permissive.

GROUP ID: V-271782
RULE ID: SV-271782r1184213

Local initialization files are used to configure the user's shell environment upon logon. Malicious modification of these files could compromise accounts upon logon.

Solution

Set the mode of the local initialization files to "0740" with the following command:

Note: The example will be for the disauser user who has a home directory of "/home/disauser".

$ sudo chmod 0740 /home/disauser/.<INIT_FILE>

See Also

https://workbench.cisecurity.org/benchmarks/27024