From d747fb6ff7493acf3c60ca71441caa18a31127ee Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 18 Aug 2009 11:01:16 +0000 Subject: Bug 510496: Recommend the admin to run mysql_secure_installation rather than playing with command lines - Patch by Frédéric Buclin r=dkl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/xml/security.xml | 91 +----------------------------------------------- 1 file changed, 1 insertion(+), 90 deletions(-) (limited to 'docs/en/xml/security.xml') diff --git a/docs/en/xml/security.xml b/docs/en/xml/security.xml index f1835a333..61bc5b179 100644 --- a/docs/en/xml/security.xml +++ b/docs/en/xml/security.xml @@ -1,5 +1,5 @@ - + Bugzilla Security @@ -80,96 +80,7 @@ - - - -
- MySQL - -
- The MySQL System Account - - As mentioned in , the MySQL - daemon should run as a non-privileged, unique user. Be sure to consult - the MySQL documentation or the documentation that came with your system - for instructions. - -
- -
- The MySQL <quote>root</quote> and <quote>anonymous</quote> Users - - By default, MySQL comes with a root user with a - blank password and an anonymous user, also with a blank - password. In order to protect your data, the root user - should be given a password and the anonymous user should be disabled. - - - - Assigning the MySQL <quote>root</quote> User a Password - - -bash$ mysql mysql -mysql> UPDATE user SET password = password('new_password') WHERE user = 'root'; -mysql> FLUSH PRIVILEGES; - - - - - Disabling the MySQL <quote>anonymous</quote> User - -bash$ mysql -u root -p mysql -Enter Password: new_password -mysql> DELETE FROM user WHERE user = ''; -mysql> FLUSH PRIVILEGES; - - - - This command assumes that you have already completed - . - - - - - -
- -
- Network Access - - If MySQL and your web server both run on the same machine and you - have no other reason to access MySQL remotely, then you should disable - the network access. This, along with the suggestion in - , will help protect your system from - any remote vulnerabilities in MySQL. - - - - Disabling Networking in MySQL - - Simply enter the following in /etc/my.cnf: - -[mysqld] -# Prevent network access to MySQL. -skip-networking - - - - -
- - - -
- - -
Web server -- cgit v1.2.3-24-g4f1b