Bug #9035 | Views: View creation should include automatic view use privileges | ||
---|---|---|---|
Submitted: | 8 Mar 2005 0:57 | Modified: | 30 Sep 2008 16:54 |
Reporter: | Trudy Pelzer | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S3 (Non-critical) |
Version: | 5.0.3-alpha-debug | OS: | Linux (SuSE 9.1) |
Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[8 Mar 2005 0:57]
Trudy Pelzer
[29 Sep 2008 21:32]
Konstantin Osipov
Has this been fixed?
[30 Sep 2008 16:54]
MySQL Verification Team
I couldn't repeat: mysql 5.0 > select * from t1; +------+-------+ | col1 | col2 | +------+-------+ | 10 | trudy | +------+-------+ 1 row in set (0.02 sec) mysql 5.0 > create view v1 as select * from t1; Query OK, 0 rows affected (0.02 sec) mysql 5.0 > select * from v1; +------+-------+ | col1 | col2 | +------+-------+ | 10 | trudy | +------+-------+ 1 row in set (0.03 sec) mysql 5.0 > show variables like "%version%"; +-------------------------+---------------------+ | Variable_name | Value | +-------------------------+---------------------+ | protocol_version | 10 | | version | 5.0.72-nt-debug-log | | version_comment | Source distribution | | version_compile_machine | ia32 | | version_compile_os | Win32 | +-------------------------+---------------------+ 5 rows in set (0.05 sec) mysql 5.0 >
[8 Feb 2009 23:13]
Demkó Gábor
The problem appears when the user crating does not have the global select privilige for the database. If the user has the select privilege on table level he can create a view on it but he wont have privileges on the view.