SV-226587r603265_rule
V-226587
SRG-OS-000480
GEN002560
CAT II
10
Edit the /etc/default/login file for Solaris. Set the variable UMASK=077.
Edit local and global initialization files containing "umask" and change them to use "077".
NOTE: The following commands must be run in the BASH shell.
Check global configuration:
# find /etc -type f | xargs grep -i umask
Check local initialization files:
# cut -d: -f6 /etc/passwd | xargs -n1 -iHOMEDIR sh -c "grep umask HOMEDIR/.*"
If the system and user default umask is not 077, this a finding.
Note: If the default umask is 000 or allows for the creation of world writable files this becomes a CAT I finding..
V-226587
False
GEN002560
NOTE: The following commands must be run in the BASH shell.
Check global configuration:
# find /etc -type f | xargs grep -i umask
Check local initialization files:
# cut -d: -f6 /etc/passwd | xargs -n1 -iHOMEDIR sh -c "grep umask HOMEDIR/.*"
If the system and user default umask is not 077, this a finding.
Note: If the default umask is 000 or allows for the creation of world writable files this becomes a CAT I finding..
M
4060