RHEL 10 must enforce mode "0740" or less permissive for local initialization files.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-281064 | RHEL-10-400235 | SV-281064r1165547_rule | CCI-000213 | medium |
| Description | ||||
| Local initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon login. | ||||
| STIG | Date | |||
| Red Hat Enterprise Linux 10 Security Technical Implementation Guide | 2026-03-11 | |||
Related Frameworks
4 paths across 3 frameworks
Related Frameworks
NIST 800-531 mapping
AC-3
1.00
- DISA · V1R1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
NIST 800-1712 mappings
3.1.1
1.00
- DISA · V1R1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
3.1.2
1.00
- DISA · V1R1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
CCI1 mapping
CCI-000213
1.00
- DISA · V1R1 · disa_xccdf · related
Details
Check Text (C-281064r1165547_chk)
Verify RHEL 10 is configured so that all local initialization files have a mode of "0740" or less permissive with the following command:
Note: The example will be for the "disauser" user, who has a home directory of "/home/disauser".
$ sudo find /home -maxdepth 2 -type f -name ".*" -exec stat -c "%n %a" {} \; | awk '$2 > 740'
/home/disauser/.bash_profile 770
If any local initialization files are returned, this indicates a mode more permissive than "0740", and this is a finding.
Fix Text (F-85530r1165546_fix)
Configure RHEL 10 so that all local initialization files have a mode of "0740" or less permissive 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>