Rule ID
SV-230328r1155410_rule
Version
V2R7
CCIs
The use of separate file systems for different paths can protect the system from failures resulting from a file system becoming full or failing.
Verify a separate file system has been created for nonprivileged local interactive user home directories.
Check the home directory assignment for all nonprivileged users, users with a User Identifier (UID) greater than 1000, on the system with the following command:
$ sudo awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1,$3,$6,$7}' /etc/passwd
pdosadmin 1000 /home/pdosadmin /bin/bash
systemuser 1001 /home/systemuser /bin/bash
acas 1002 /home/acas /bin/bash
The output of the command will give the directory/partition that contains the home directories for the nonprivileged users on the system (in this example, "/home") and users’ shell. All accounts with a valid shell (such as /bin/bash) are considered interactive users.
Check that a file system/partition has been created for the nonprivileged interactive users with the following command:
Note: The partition of "/home" is used in the example.
$ sudo grep /home /etc/fstab
/dev/mapper/... /home xfs defaults,noexec,nosuid,nodev 0 0
If a separate entry for the file system/partition containing the nonprivileged interactive user home directories does not exist, this is a finding.Migrate the "/home" directory onto a separate file system.