30 messages in com.mysql.lists.mysqlRE: Any user with 'grant' privilege c...
FromSent OnAttachments
Viktor Fougstedt09 Jan 2000 13:06 
sin...@mysql.com10 Jan 2000 06:15 
Viktor Fougstedt10 Jan 2000 06:39 
Viktor Fougstedt10 Jan 2000 07:44 
sin...@mysql.com10 Jan 2000 07:59 
sin...@mysql.com10 Jan 2000 08:20 
Robert Goff10 Jan 2000 08:24 
sin...@mysql.com10 Jan 2000 08:44 
Viktor Fougstedt10 Jan 2000 09:20 
Juan Manuel Doren10 Jan 2000 09:22 
Viktor Fougstedt10 Jan 2000 09:23 
Viktor Fougstedt10 Jan 2000 09:35 
sin...@mysql.com10 Jan 2000 09:36 
sin...@mysql.com10 Jan 2000 09:41 
Viktor Fougstedt10 Jan 2000 09:42 
sin...@mysql.com10 Jan 2000 09:46 
Michael Widenius10 Jan 2000 11:57 
Benjamin Pflugmann10 Jan 2000 11:58 
Michael Widenius10 Jan 2000 16:53 
Michael Widenius10 Jan 2000 16:56 
Van10 Jan 2000 20:13 
Viktor Fougstedt11 Jan 2000 03:37 
Michael Widenius11 Jan 2000 08:52 
Paul DuBois12 Jan 2000 14:33 
Van16 Jan 2000 07:26 
sin...@mysql.com16 Jan 2000 07:36 
Dylan Neild16 Jan 2000 21:05 
Van16 Jan 2000 21:12 
Paul DuBois17 Jan 2000 08:21 
Michael Widenius26 Jan 2000 00:16 
Subject:RE: Any user with 'grant' privilege can change root's password in3.22.27?
From:Viktor Fougstedt (vik@dtek.chalmers.se)
Date:01/10/2000 09:20:08 AM
List:com.mysql.lists.mysql

On Mon, 10 Jan 2000 sin@mysql.com wrote:

Yes, that is exactly what 'WITH GRANT OPTION' is designed for !!!

Update privileges are not important for operations with grant tables. 'WITH GRANT OPTION' is all that is needed.

This is standard ANSI SQL92 behaviour, and most of RDBMS's conform to it !!

Ok, seems I've misunderstood here. I believed that WITH GRANT OPTION meant that I could give away _my_own_ privileges. But WITH GRANT OPTION seems to mean that I can give away _any_ privileges in the entire database, i.e. that I'm a mysql-root.

Why should I be able to change the password of those to whom I give the rights? I'm _not_ talking about a global grant option in the mysql.user table here, but about a grant option on a specific database in the mysql.db-table.

From the manual, section on GRANT:

- In MySQL 3.22.12 or later, if a new user is created or if you have - global grant privileges, the user's password will be set to the - password specified by the IDENTIFIED BY clause, if one is given. If - the user already had a password, it is replaced by the new one.

The test users, as created by the mysql_install_db-script does not have global grant privileges. There is a 'N' in that column in the mysql.user table. They only have a grant option for test* databases. But they can still update the password of any user in the database, including root. To me that seems wrong.

/Viktor...