STIGQter STIGQter: STIG Summary: VMware vSphere 6.7 Photon OS Security Technical Implementation Guide Version: 1 Release: 1 Benchmark Date: 09 Mar 2021:

The Photon operating system must configure a secure umask for all shells.

DISA Rule

SV-239153r675267_rule

Vulnerability Number

V-239153

Group Title

SRG-OS-000480-GPOS-00227

Rule Version

PHTN-67-000082

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

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

Check Contents

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.

Vulnerability Number

V-239153

Documentable

False

Rule Version

PHTN-67-000082

Severity Override Guidance

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.

Check Content Reference

M

Target Key

5323

Comments