[MDEV-6295] grant ... with grant option using wildcards including \_ Created: 2014-06-02 Updated: 2014-06-03 Resolved: 2014-06-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.11-galera |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Christian Quast | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When granting privileges on a set of databases using wildcards including '\_' with 'grant option' to a user this user may create new databases according to the pattern but cannot grant privileges to other users. Excerpt from http://dev.mysql.com/doc/refman/5.5/en/grant.html:
So when executing as root/admin user
I would expect the user to be able to create a database foo_bar (which works just fine) and then be able to grant privileges to other users. Instead an access denied error is reported ERROR 1044 (42000): Access denied for user 'user'@'%' to database 'foo_bar' When I change the db pattern to '%_bar', granting privileges works as expected. Logged in as admin user:
Logged in as 'user'
After this 'otheruser' can work with database foo_bar. However, this workaround will allow 'user' to create databases such as 'abar' which is not intended. |
| Comments |
| Comment by Elena Stepanova [ 2014-06-03 ] | ||
|
Hi, This is an ancient not-a-bug http://bugs.mysql.com/bug.php?id=12008.
|