[MDEV-23816] GRANT role TO user denied to ALL PRIVILEGES user Created: 2020-09-25 Updated: 2021-03-09 Resolved: 2020-09-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.1.46, 10.2.34 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
|
| Comments |
| Comment by Sergei Golubchik [ 2020-09-25 ] | |||||
|
I don't think it's a bug. there is no such privilege "all privileges" that allows to do just everything. ALL PRIVILEGES is a short name for the list of all individual privileges. And there is no special privilege that allows you to grant roles you aren't admin of. As far as
| |||||
| Comment by Daniel Black [ 2020-09-28 ] | |||||
|
probably was meaning `create user` priv. Thanks for the hint. Modified slightly by using a mariadb_dump_import_role that has the admin of the role, and just drop the mariadb_dump_import_role at the end. Easier than revoking in bulk. |