With a fresh (but old) install of Ubuntu and MySQL, I found I could access the MySQL via command line client without being asked for any user or password.
Logging in as root requires the root password. But logging in without specifying the user (ie, just typing mysql on the command line) asks me for neither user nor password.
I'm logged in as stewart@localhost. No such user exists in the mysql.user table.
This user can see the information_schema database.
Why does the user exist? I thought MySQL users were separate from OS system accounts.
stewartuser is indeed in theadmingroup. I thoughdebian-sys-mainthad something to do with it, hence my previous question : http://serverfault.com/questions/619633/securing-mysql-debian-sys-maint – Stewart Aug 12 '14 at 14:05REVOKE ALL PRIVILEGES(in the other question) is a reasonable compromise? – Stewart Aug 12 '14 at 15:51