Information
All local initialization files must have mode "0740" or less permissive.
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 smithj user, who has a home directory of "/home/smithj".
# chmod g-wx,o-rwx /home/smithj/.<INIT_FILE>
Item Details
Category: ACCESS CONTROL, CONFIGURATION MANAGEMENT, MEDIA PROTECTION
References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|CM-6b., 800-53|MP-2, CAT|II, CSCv7|14.6, Rule-ID|SV-230325r917879_rule, STIG-ID|RHEL-08-010770, Vuln-ID|V-230325
Control ID: 6e95eba48ba9bc408dd3483983f938aebae853c5ca4f0beed098d7a2653efc8e