RHEL-07-020620 - The Red Hat Enterprise Linux operating system must be configured so that all local interactive users have a home directory assigned and defined in the /etc/passwd file.

Information

If local interactive users are not assigned a valid home directory, there is no place for the storage and control of files they should own.

In addition, if a local interactive user has a home directory defined that does not exist, the user may be given access to the / directory as the current working directory upon logon. This could create a Denial of Service because the user would not be able to access their logon configuration files, and it may give them visibility to system files they normally would not be able to access.

Solution

Create home directories to all local interactive users that currently do not have a home directory assigned. Use the following commands to create the user home directory assigned in '/etc/ passwd':

Note: The example will be for the user smithj, who has a home directory of '/home/smithj', a UID of 'smithj', and a Group Identifier (GID) of 'users' assigned in '/etc/passwd'.

# mkdir /home/smithj
# chown smithj /home/smithj
# chgrp users /home/smithj
# chmod 0750 /home/smithj

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_7_V3R15_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-204467r991589_rule, STIG-ID|RHEL-07-020620, STIG-Legacy|SV-86639, STIG-Legacy|V-72015, Vuln-ID|V-204467

Plugin: Unix

Control ID: fe38b7484478bf0a42158d550bfd5feecc9a62ab1c73d6c452ba06c73f69b5f3