Bug #39807 | Special grants handling for "mysql" database (SHOW GRANTS and %_PRIVILEGES tabl) | ||
---|---|---|---|
Submitted: | 2 Oct 2008 12:36 | Modified: | 7 Oct 2008 11:54 |
Reporter: | Andrii Nikitin | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[2 Oct 2008 12:36]
Andrii Nikitin
[7 Oct 2008 11:54]
Sergei Golubchik
The manual says quite explicitly: SHOW GRANTS requires the SELECT privilege for the mysql database. It does not say nor anywhere implies that SELECT privilege on individual tables in the mysql database is sufficient. http://dev.mysql.com/doc/refman/5.0/en/show-grants.html
[7 Oct 2008 12:31]
Simon Mudd
I was the original reporter of this "bug". It looks like I didn't find this information in the manual properly. I do think however that requiring SELECT privileges to the mysql database may grant the user more rights than the grantor may actually intend, and it would be better to not have to provide access to the whole database but only to those tables which actually have grant information, even though I see that's not currently possible because the mysql database behaves differently.