Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2018-04-23 11:56:26 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-04-23 11:56:26 +0300
commit40d6a853d56cffc99cb95f18396db252cc7c3025 (patch)
tree311f5f3952ede5629915009a720121c91984b6ea
parentc5dcbe8c31a70b3f2dea4bf4527567f86be0c4bf (diff)
Changed file permissions
-rw-r--r--[-rwxr-xr-x]include/functions0
-rw-r--r--include/tests_databases4
-rw-r--r--[-rwxr-xr-x]include/tests_logging0
-rw-r--r--[-rwxr-xr-x]include/tests_squid0
-rw-r--r--[-rwxr-xr-x]include/tests_time0
5 files changed, 2 insertions, 2 deletions
diff --git a/include/functions b/include/functions
index d5311548..d5311548 100755..100644
--- a/include/functions
+++ b/include/functions
diff --git a/include/tests_databases b/include/tests_databases
index b223cd8b..2ebf2972 100644
--- a/include/tests_databases
+++ b/include/tests_databases
@@ -78,8 +78,8 @@
# "-u root --password=" avoids ~/.my.cnf authentication settings
# "plugin = 'mysql_native_password' AND authentication_string = ''" avoids false positives when secure plugins are used
- FIND=$(${MYSQLCLIENTBINARY} --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 2>/dev/null)
- if [ "${FIND}" > "0" ]; then
+ FIND=$(${MYSQLCLIENTBINARY} --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 2>/dev/null; echo $?)
+ if [ "${FIND}" = "0" ]; then
LogText "Result: Login succeeded, no MySQL root password set!"
ReportWarning ${TEST_NO} "No MySQL root password set"
Display --indent 4 --text "- Checking empty MySQL root password" --result "${STATUS_WARNING}" --color RED
diff --git a/include/tests_logging b/include/tests_logging
index fe231f75..fe231f75 100755..100644
--- a/include/tests_logging
+++ b/include/tests_logging
diff --git a/include/tests_squid b/include/tests_squid
index 31eced8b..31eced8b 100755..100644
--- a/include/tests_squid
+++ b/include/tests_squid
diff --git a/include/tests_time b/include/tests_time
index 316cf55a..316cf55a 100755..100644
--- a/include/tests_time
+++ b/include/tests_time