mirror of https://github.com/CISOfy/lynis.git
remove whitespaces
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
8d9cdb22f4
commit
fe5990f208
|
@ -85,7 +85,7 @@
|
|||
LogText "Test: Trying to login to local MySQL server without password"
|
||||
|
||||
# "-u root --password=" avoids ~/.my.cnf authentication settings
|
||||
# "plugin = 'mysql_native_password' AND authentication_string = ''" avoids false positives when secure plugins are used
|
||||
# "plugin = 'mysql_native_password' AND authentication_string = ''" avoids false positives when secure plugins are used
|
||||
FIND=$(${MYSQLCLIENTBINARY} --default-auth=mysql_native_password --no-defaults -u root --password= --silent --batch --execute="SELECT count(*) FROM mysql.user WHERE user = 'root' AND plugin = 'mysql_native_password' AND authentication_string = ''" mysql > /dev/null 2>&1; echo $?)
|
||||
if [ "${FIND}" = "0" ]; then
|
||||
LogText "Result: Login succeeded, no MySQL root password set!"
|
||||
|
@ -213,7 +213,7 @@
|
|||
ReportWarning "${TEST_NO}" "PostgreSQL configuration file ${CF} is world readable and might leak sensitive details" "${CF}" "Use chmod 600 to change file permissions"
|
||||
else
|
||||
LogText "Result: great, configuration file ${CF} is not world readable"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue