Bug #19239 | DROP USER doesn't remove privileges immediately | ||
---|---|---|---|
Submitted: | 21 Apr 2006 1:31 | Modified: | 17 May 2006 13:21 |
Reporter: | Kai Voigt | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S2 (Serious) |
Version: | 5.1.10-BK, 5.1.7-beta-log | OS: | Linux (Linux, MacOSX) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[21 Apr 2006 1:31]
Kai Voigt
[24 Apr 2006 13:56]
Valeriy Kravchuk
Verified just as described with 5.0.10-BK on Linux. I am not sure what claims in the manual do you mean (I had not found exact claims of that kind at http://dev.mysql.com/doc/refman/5.1/en/drop-user.html), but the following is definitely a bug (after deliting user, in his session): mysql> show grants; ERROR 1141 (42000): There is no such grant defined for user 'testuser' on host 'localhost' mysql> select count(*) from t1; +----------+ | count(*) | +----------+ | 1 | +----------+ 1 row in set (0.00 sec)
[17 May 2006 9:51]
Sergei Golubchik
This is by design, global level privileges aren't removed from an active session. Perhaps it's not documented properly ?
[17 May 2006 13:21]
Paul DuBois
The effect of dropping privileges, or rather the effect of privilege changes in general, is covered here: http://dev.mysql.com/doc/refman/5.0/en/privilege-changes.html