Bug #25236 Trap when executed as another (priviledged) user
Submitted: 21 Dec 2006 15:36 Modified: 22 Jan 2007 12:30
Reporter: Carlos Ramon Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.2.8 beta OS:Windows (Windows 2000)
Assigned to: Mike Lischke CPU Architecture:Any
Tags: RunAs

[21 Dec 2006 15:36] Carlos Ramon
Description:
I normally work as unpriviledged (non Administrator) user.
When I've to change configuration files, start / stop services, etc. I use the Windows feature known as "Run As" and I execute the selected tool as an Administrators user.

In particular, to change MySQL configuration parameters file, which is protected by OS file security, I tried to run MySQL Administrator as a privileged user, resulting in the following exceptions reports:

---------------------------
MySQL Administrator: MySQLAdministrator.exe - Application Error
---------------------------
The exception unknown software exception (0x0eedfade) occurred in the application at location 0x7c59bbf3.

---------------------------
OK   Cancel   
---------------------------

---------------------------
Application Error
---------------------------
Exception EOSError in module MySQLAdministrator.exe at 00011F49.

System Error.  Code: 5.

Access is denied.

---------------------------
OK   
---------------------------

How to repeat:
1/ Login as an unprivileged user
2/ Start an instance of MySQL Administrator and connect to it

3/ Right click at MySQL Administrator shortcut
4/ Select "Run as..." menuitem. The "Run as other user" system dialog appears.
5/ Select option "Run the program as the following user" and provide credentials of a local administrator user (User, password and local domain). MySQL Administrator starts, and the connection Dialog appears.
6/ Provide database credentials (ie: root and its password) and press OK. Then the Application error exceptions stated above appears, and the process finishes.

Please note that this happens only when you have one program instance started as one user, and try to start a sencod instance with another user. If you only starts one instance (either normal or privileged) it works.

Suggested fix:
May be that there is a temporary file that both application instances try to access simultaneosuly, with different credentials, resulting in an access deny error to one of them.
[26 Dec 2006 10:46] Sveta Smirnova
Thank you for the report.

Verified as described.
[22 Jan 2007 12:30] Mike Lischke
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html