SV-226481r603265_rule
V-226481
SRG-OS-000480
GEN001080
CAT III
10
Change the root account's shell to one present on the / filesystem. Example:
# usermod -s /sbin/sh root
Perform the following to determine if /usr is partitioned.
# grep /usr /etc/vfstab
If /usr is partitioned, check the location of root's default shell.
# awk -F: '$1 == "root" {print $7}' /etc/passwd
If the root shell is found to be on a partitioned /usr filesystem or is in a directory symlinked to a partitioned /usr filesystem, even if the actual root shell is a symlink back to the root filesystem, this is a finding.
V-226481
False
GEN001080
Perform the following to determine if /usr is partitioned.
# grep /usr /etc/vfstab
If /usr is partitioned, check the location of root's default shell.
# awk -F: '$1 == "root" {print $7}' /etc/passwd
If the root shell is found to be on a partitioned /usr filesystem or is in a directory symlinked to a partitioned /usr filesystem, even if the actual root shell is a symlink back to the root filesystem, this is a finding.
M
4060