module-mysql/files/scripts
Gabriel Filion e894ddb718 Avoid root password leak to process list
The current procedure of setting the root MySQL password leaks the root
password by giving it to the setmysqlpass.sh script on the command line.
This means that during the couple of seconds that the script is
executing, the password is visible in the process list!

Since we're already writing the password in the /root/.my.cnf file, make
the setmysqlpass.sh script parse this file to retrieve the password
instead of receiving it from a command line argument.

Also, in some shells the 'echo' command might appear in the process
list. Use a heredoc notation to create the output without using a
command.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-12-18 12:50:17 +01:00
..
CentOS Avoid root password leak to process list 2010-12-18 12:50:17 +01:00
Debian Avoid root password leak to process list 2010-12-18 12:50:17 +01:00
optimize_tables.rb as we are in ruby we need to double escape that 2010-04-04 12:27:12 +02:00