Bug #69481 Workbench requires a sudo password even when sudo is disabled
Submitted: 15 Jun 2013 10:20 Modified: 28 Jun 2013 0:05
Reporter: Giuseppe Maxia Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S2 (Serious)
Version:6.0.2.10924 OS:MacOS
Assigned to: CPU Architecture:Any
Tags: admin, sudo, usability

[15 Jun 2013 10:20] Giuseppe Maxia
Description:
I have installed a MySQL Sandbox and I set the system profile as follows:

configuration file: /Users/gmax/sandboxes/msb_5_5_31/my.sandbox.cnf
Check MySQL status : /Users/gmax/sandboxes/msb_5_5_31/msb status
Start MySQL: /Users/gmax/sandboxes/msb_5_5_31/msb start
Stop MySQL: /Users/gmax/sandboxes/msb_5_5_31/msb stop

I have left unckecked both the "elevate privilege" boxes.

Just to be clear: MySQL Sandbox runs as unprivileged server, and it never requires root access.

Then, when I try the "stop server" button, the app wants my 'sudo' password. The same happens for the server logs panel.
When I give in and enter my sudo password, I get this:
"Unhandled exception: Could not get size of file /Users/gmax/sandboxes/msb_5_5_31/data/msandbox.err"

 

How to repeat:
see above

Suggested fix:
Test the application with MySQL Sandbox. It's open source and freely available ( http://mysqlsandbox.net )
[17 Jun 2013 2:11] Alfredo Kojima
Thank you for the bug report.
[17 Jun 2013 2:20] Alfredo Kojima
Posted by developer:
 
Fixed so that sudo password is not requested if not needed
[28 Jun 2013 0:05] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.0.3 release, and here's the changelog entry:

MySQL Workbench prompted for the "sudo" password even when it was not needed.

Thank you for the bug report.