[MDEV-27833] mysql_secure_installation didn't disable unix_socket authentication Created: 2022-02-14 Updated: 2022-02-15 Resolved: 2022-02-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Ali Salam | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Unix_socket authentication has been installed and enabled by default since MariaDB 10.4.3, and when run mysql_secure_installation, we still get the question "Enable unix_socket authentication? [Y/n]" I think the question must be changed to "Disable unix_socket authentication? [Y/n]" or at least when press n instead of skipping, the script remove unix_auth from the root user. |
| Comments |
| Comment by Sergei Golubchik [ 2022-02-15 ] |
|
This is intentional. The script goal is not to make arbitrary changes in the mariadb configuration, but to make it more secure. Enabling unix_socket is a step toward that goal. Any other changes one may want to do — they can be done without mysql_secure_installation script. |