Actually you can do the sudo thing without hacking mysql or touching
mysql code. A rather simple init/shell-script (re)starting mysqld with
skip privileges lets you overwrite existing root passwords, that is also
the way mysql suggests.

So a /etc/init.d/mysql setpass could interactively ask you wheter to
restart mysql with skip privs listening only on a local socket, set a
new password and restart mysql with normal my.cnf configuration
afterwards.

That might sound a little freaky but actually it's fewer code, more
maintainable and mysql administrators used to have a standard mysql
server don't get puzzled about a patched server.

-- 
Root password policy for mysql
https://bugs.launchpad.net/bugs/119075
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to