To remove remote anonymous users, you harden CLI access for MariaDB users by forcing the requirement for a username and password to get into the MariaDB shell. The process to do so is as follows.
1. Log in to MariaDB prompt and execute the command to enter the mysql schema. |
|
2. Back up the user table to user_backup before changing it. |
|
3. Validate that the backup table was created and row count matches that of the mysql.db table. |
|
4. List all users and hosts. |
|
5. Remove anonymous/blank accounts. |
|
6. Validate that the rows with blank user columns have been removed. |
|