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: f43c73ff559beb04ce25efab216b32ac72ee20ebc3ebe7d1e28a3f114179befc