diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2017-12-29 11:25:42 +1100 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-01-15 16:19:53 +0400 |
commit | 1879b2b8df0c0cd84c14aa955cd370bff424fd3f (patch) | |
tree | 312be5432549329e2c0124801599baac739bffb6 /debian/additions | |
parent | 88a9b23396531f0f0f63c1f989af69772216d442 (diff) | |
download | mariadb-git-1879b2b8df0c0cd84c14aa955cd370bff424fd3f.tar.gz |
debian: insecure root password is only if plugin is empty
Diffstat (limited to 'debian/additions')
-rw-r--r-- | debian/additions/debian-start.inc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/additions/debian-start.inc.sh b/debian/additions/debian-start.inc.sh index f50712882c1..1fe1950adea 100644 --- a/debian/additions/debian-start.inc.sh +++ b/debian/additions/debian-start.inc.sh @@ -65,7 +65,7 @@ function check_root_accounts() { logger -p daemon.info -i -t$0 "Checking for insecure root accounts." - ret=$( echo "SELECT count(*) FROM mysql.user WHERE user='root' and password='';" | $MYSQL --skip-column-names ) + ret=$( echo "SELECT count(*) FROM mysql.user WHERE user='root' and password='' and plugin='';" | $MYSQL --skip-column-names ) if [ "$ret" -ne "0" ]; then logger -p daemon.warn -i -t$0 "WARNING: mysql.user contains $ret root accounts without password!" fi |