Bug #20059 | REVOKE USAGE statement doesn't appear to do anything | ||
---|---|---|---|
Submitted: | 25 May 2006 2:20 | Modified: | 14 Jun 2006 11:23 |
Reporter: | Erica Moss | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.21-community-nt | OS: | Windows (win32 - XP SP2) |
Assigned to: | Tatiana Azundris Nuernberg | CPU Architecture: | Any |
[25 May 2006 2:20]
Erica Moss
[14 Jun 2006 11:23]
Tatiana Azundris Nuernberg
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: GRANT anything will grant the given privileges (and may create an account as necessary as a side-effect). The "given privileges" in this case are "USAGE", vulgo, "NOTHING" (see manual, "USAGE is a synonym for 'no privileges'"), so the use case is, "give no privileges to user X". "REVOKE USAGE" therefore means "REVOKE NOTHING" and behaves as expected inasmuch it revokes nothing. This dummy nature of USAGE is further illustrated in the manual like so: "To specify any of these resource-limit options for an existing user without affecting existing privileges, use GRANT USAGE ON *.* ... WITH MAX_...") GRANT implicitly creating users but REVOKE not dropping them is also documented behavior.