Skip to content

Commit 1879b2b

Browse files
grooverdansvoj
authored andcommitted
debian: insecure root password is only if plugin is empty
1 parent 88a9b23 commit 1879b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/additions/debian-start.inc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function check_root_accounts() {
6565

6666
logger -p daemon.info -i -t$0 "Checking for insecure root accounts."
6767

68-
ret=$( echo "SELECT count(*) FROM mysql.user WHERE user='root' and password='';" | $MYSQL --skip-column-names )
68+
ret=$( echo "SELECT count(*) FROM mysql.user WHERE user='root' and password='' and plugin='';" | $MYSQL --skip-column-names )
6969
if [ "$ret" -ne "0" ]; then
7070
logger -p daemon.warn -i -t$0 "WARNING: mysql.user contains $ret root accounts without password!"
7171
fi

0 commit comments

Comments
 (0)