SV-239153r675267_rule
V-239153
SRG-OS-000480-GPOS-00227
PHTN-67-000082
CAT II
10
Open /etc/profile.d/umask.sh with a text editor.
Set the contents as follows:
# By default, the umask should be set.
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
umask 002
else
umask 027
fi
At the command line, execute the following command:
# cat /etc/profile.d/umask.sh
Expected result:
# By default, the umask should be set.
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
umask 002
else
umask 027
fi
If the output does not match the expected result, this is a finding.
V-239153
False
PHTN-67-000082
At the command line, execute the following command:
# cat /etc/profile.d/umask.sh
Expected result:
# By default, the umask should be set.
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
umask 002
else
umask 027
fi
If the output does not match the expected result, this is a finding.
M
5323