6.2.24 Ensure local interactive users' dot files are group-owned by the users group or root.

Information

The operating system must be configured so that all local initialization (dot) files for local interactive users are group-owned by the users primary group or root.

Rationale:

Local initialization (dot) files for interactive users are used to configure the user's shell environment upon logon. Malicious modification of these files could compromise accounts upon logon.

Solution

Change the group owner of a local interactive user's files to the group found in /etc/passwd for the user. To change the group owner of a local interactive user's home directory, use the following command:
Note: The example will be for the user smithj, who has a home directory of /home/smithj, and has a primary group of users.

# chgrp users /home/smithj/<file>

Notes:

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019



Vul ID: V-72031

Rule ID: SV-86655r3_rule

STIG ID: RHEL-07-020700

Severity: CAT II

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: d7ed418a9b18fb6d169f82d12a056f90e3c01e5d24eec5529269ef179e03d069