[MDEV-7656] init_file option does not allow changing passwords Created: 2015-03-04 Updated: 2015-10-23 Resolved: 2015-10-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements |
| Affects Version/s: | 10.0.17, 10.1.3, 10.0 |
| Fix Version/s: | 10.0.22, 10.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Garner | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | verified | ||
| Sprint: | 10.0.22 |
| Description |
|
This came up when resetting a forgotten password for a database user in mariadb 10.0.17, where typically the process was to restart with --init-file that applies some SQL like SET PASSWORD / UPDATE ... SET PASSWORD / GRANT ... IDENTIFIED BY. Under MariaDB 10.0.17 (and also tested under 10.1.3) this results in the following error in the error log and no effect: ERROR: 1131 You are using MariaDB as an anonymous user and anonymous users are not allowed to modify user settings This seems to only affect changing the password of existing users, but new users can be added with a password. Alternatively, skip-grant-tables can be used as an alternative (but we find less desirable) method to reset a password. This seems like a bug, and fwiw, the behavior seems to differ from MySQL 5.6. Is this behavior of init-file in MariaDB intended? |
| Comments |
| Comment by Elena Stepanova [ 2015-03-04 ] | ||||||||||||||||||||||||||||||||
|
Thanks for the report.
| ||||||||||||||||||||||||||||||||
| Comment by TomP [ 2015-08-11 ] | ||||||||||||||||||||||||||||||||
|
We too are seeing this issue with 10.0.21 on CentOS 6. We use the init-file feature to ensure certain system users are setup with the correct hashed passwords on our database servers when the servers start. This file is puppet managed so that new servers are automatically provisioned with these users. |