SV-226471r603265_rule
V-226471
SRG-OS-000480
GEN000900
CAT III
10
The root home directory should be something other than / (such as /rootdir).
Procedure:
# mkdir /rootdir
# chown root /rootdir
# chgrp root /rootdir
# chmod 700 /rootdir
# cp -r /.??* /rootdir
Edit the passwd file and change the root home directory to /rootdir. The cp -r /.??* command copies all files and subdirectories of file names beginning with "." into the new root directory, which preserves the previous root environment. The cp command must be executed from the / directory.
Determine if root is assigned a home directory other than / by listing its home directory.
Procedure:
# grep "^root" /etc/passwd | awk -F":" '{print $6}'
If the root user home directory is /, this is a finding.
V-226471
False
GEN000900
Determine if root is assigned a home directory other than / by listing its home directory.
Procedure:
# grep "^root" /etc/passwd | awk -F":" '{print $6}'
If the root user home directory is /, this is a finding.
M
4060