mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 07:15:07 +02:00
Changes to comments only
This commit is contained in:
parent
78f32c2f28
commit
6fbe0e95c5
@ -811,11 +811,11 @@
|
|||||||
logtext "Test: Checking umask value in /etc/profile"
|
logtext "Test: Checking umask value in /etc/profile"
|
||||||
FIND=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }'`
|
FIND=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }'`
|
||||||
FIND2=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }' | wc -l`
|
FIND2=`grep "umask" /etc/profile | sed 's/^[ \t]*//' | grep -v "^#" | awk '{ print $2 }' | wc -l`
|
||||||
#FIND2=`egrep "^([[:space:]])([[:tab:]])*umask" /etc/profile | awk '{ print $2 }' | wc -l`
|
|
||||||
WEAK_UMASK=0
|
WEAK_UMASK=0
|
||||||
FOUND_UMASK=0
|
FOUND_UMASK=0
|
||||||
if [ "${FIND2}" = "0" ]; then
|
if [ "${FIND2}" = "0" ]; then
|
||||||
logtext "Result: did not find umask in /etc/profile"
|
logtext "Result: did not find umask in /etc/profile"
|
||||||
|
#YYY possibly weak umask
|
||||||
elif [ "${FIND2}" = "1" ]; then
|
elif [ "${FIND2}" = "1" ]; then
|
||||||
logtext "Result: found umask (prefixed with spaces)"
|
logtext "Result: found umask (prefixed with spaces)"
|
||||||
FOUND_UMASK=1
|
FOUND_UMASK=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user