Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.255
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
emps /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
annotate
13.09
KB
-rwxr-xr-x
2026-05-14 17:34
autoconf
14.32
KB
-rwxr-xr-x
2026-05-14 17:32
autoheader
8.43
KB
-rwxr-xr-x
2026-05-14 17:32
autom4te
31.48
KB
-rwxr-xr-x
2026-05-14 17:32
autopoint
23.93
KB
-rwxr-xr-x
2026-05-14 17:36
autoreconf
20.68
KB
-rwxr-xr-x
2026-05-14 17:32
autoscan
16.82
KB
-rwxr-xr-x
2026-05-14 17:32
autoupdate
33.17
KB
-rwxr-xr-x
2026-05-14 17:32
bdftogd
3.9
KB
-rwxr-xr-x
2026-05-14 17:34
bsqldb
41.8
KB
-rwxr-xr-x
2026-05-14 17:35
bunzip2
281.48
KB
-rwxr-xr-x
2026-05-14 17:33
bzcat
281.48
KB
-rwxr-xr-x
2026-05-14 17:33
bzcmp
2.08
KB
-rwxr-xr-x
2026-05-14 17:33
bzdiff
2.08
KB
-rwxr-xr-x
2026-05-14 17:33
bzegrep
1.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzfgrep
1.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzgrep
1.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzip2
281.48
KB
-rwxr-xr-x
2026-05-14 17:33
bzip2recover
32.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzless
1.23
KB
-rwxr-xr-x
2026-05-14 17:33
bzmore
1.23
KB
-rwxr-xr-x
2026-05-14 17:33
c_rehash
6.73
KB
-rwxr-xr-x
2026-05-14 17:16
captoinfo
63.13
KB
-rwxr-xr-x
2026-05-14 17:22
cjpeg
44.55
KB
-rwxr-xr-x
2026-05-14 17:34
clear
8.44
KB
-rwxr-xr-x
2026-05-14 17:22
clusterdb
81.73
KB
-rwxr-xr-x
2026-05-14 17:32
createdb
85.87
KB
-rwxr-xr-x
2026-05-14 17:32
createuser
82.13
KB
-rwxr-xr-x
2026-05-14 17:32
curl
242.66
KB
-rwxr-xr-x
2026-05-14 17:33
curl-config
5.67
KB
-rwxr-xr-x
2026-05-14 17:33
datacopy
27.1
KB
-rwxr-xr-x
2026-05-14 17:35
defncopy
28.15
KB
-rwxr-xr-x
2026-05-14 17:35
derb
30.97
KB
-rwxr-xr-x
2026-05-14 17:39
djpeg
35.84
KB
-rwxr-xr-x
2026-05-14 17:34
dropdb
77.02
KB
-rwxr-xr-x
2026-05-14 17:32
dropuser
76.96
KB
-rwxr-xr-x
2026-05-14 17:32
ecpg
981.44
KB
-rwxr-xr-x
2026-05-14 17:32
envsubst
43.15
KB
-rwxr-xr-x
2026-05-14 17:36
fisql
39.02
KB
-rwxr-xr-x
2026-05-14 17:35
fpmctl
1.73
KB
-rwxr-xr-x
2026-05-14 17:44
freebcp
27.42
KB
-rwxr-xr-x
2026-05-14 17:35
freetype-config
3.63
KB
-rwxr-xr-x
2026-05-14 17:34
gd2copypal
8.59
KB
-rwxr-xr-x
2026-05-14 17:34
gd2togif
8.54
KB
-rwxr-xr-x
2026-05-14 17:34
gd2topng
12.64
KB
-rwxr-xr-x
2026-05-14 17:34
gdcmpgif
12.63
KB
-rwxr-xr-x
2026-05-14 17:34
gdparttopng
8.64
KB
-rwxr-xr-x
2026-05-14 17:34
gdtopng
8.54
KB
-rwxr-xr-x
2026-05-14 17:34
genbrk
18.54
KB
-rwxr-xr-x
2026-05-14 17:39
gencfu
13.96
KB
-rwxr-xr-x
2026-05-14 17:39
gencnval
27.45
KB
-rwxr-xr-x
2026-05-14 17:39
gendict
29.29
KB
-rwxr-xr-x
2026-05-14 17:39
genrb
140.42
KB
-rwxr-xr-x
2026-05-14 17:39
gettext
42.57
KB
-rwxr-xr-x
2026-05-14 17:36
gettext.sh
4.51
KB
-rwxr-xr-x
2026-05-14 17:36
gettextize
41.16
KB
-rwxr-xr-x
2026-05-14 17:36
giftogd2
8.59
KB
-rwxr-xr-x
2026-05-14 17:34
iconv
109.52
KB
-rwxr-xr-x
2026-05-14 17:27
icu-config
21.54
KB
-rwxr-xr-x
2026-05-14 17:39
icuinfo
13.46
KB
-rwxr-xr-x
2026-05-14 17:39
ifnames
4.09
KB
-rwxr-xr-x
2026-05-14 17:32
infocmp
58.49
KB
-rwxr-xr-x
2026-05-14 17:22
infotocap
63.13
KB
-rwxr-xr-x
2026-05-14 17:22
initdb
144.46
KB
-rwxr-xr-x
2026-05-14 17:32
innochecksum
27.82
KB
-rwxr-xr-x
2026-05-14 17:26
jpegtran
52.73
KB
-rwxr-xr-x
2026-05-14 17:34
ldapadd
63.13
KB
-rwxr-xr-x
2026-05-14 17:29
ldapcompare
51.02
KB
-rwxr-xr-x
2026-05-14 17:29
ldapdelete
55.12
KB
-rwxr-xr-x
2026-05-14 17:29
ldapexop
51.09
KB
-rwxr-xr-x
2026-05-14 17:29
ldapmodify
63.13
KB
-rwxr-xr-x
2026-05-14 17:29
ldapmodrdn
51.02
KB
-rwxr-xr-x
2026-05-14 17:29
ldappasswd
51.04
KB
-rwxr-xr-x
2026-05-14 17:29
ldapsearch
75.3
KB
-rwxr-xr-x
2026-05-14 17:29
ldapurl
18.38
KB
-rwxr-xr-x
2026-05-14 17:29
ldapwhoami
51.04
KB
-rwxr-xr-x
2026-05-14 17:29
libmcrypt-config
1.43
KB
-rwxr-xr-x
2026-05-14 17:33
libpng-config
2.28
KB
-rwxr-xr-x
2026-05-14 17:34
libpng16-config
2.28
KB
-rwxr-xr-x
2026-05-14 17:34
libtool
311.68
KB
-rwxr-xr-x
2026-05-14 17:32
libtoolize
76.78
KB
-rwxr-xr-x
2026-05-14 17:32
makeconv
55.24
KB
-rwxr-xr-x
2026-05-14 17:39
mcrypt
110.92
KB
-rwxr-xr-x
2026-05-14 17:34
mdecrypt
110.92
KB
-rwxr-xr-x
2026-05-14 17:34
msgattrib
26.77
KB
-rwxr-xr-x
2026-05-14 17:36
msgcat
22.85
KB
-rwxr-xr-x
2026-05-14 17:36
msgcmp
28.12
KB
-rwxr-xr-x
2026-05-14 17:36
msgcomm
22.85
KB
-rwxr-xr-x
2026-05-14 17:36
msgconv
22.53
KB
-rwxr-xr-x
2026-05-14 17:36
msgen
22.52
KB
-rwxr-xr-x
2026-05-14 17:36
msgexec
18.8
KB
-rwxr-xr-x
2026-05-14 17:36
msgfilter
27.79
KB
-rwxr-xr-x
2026-05-14 17:36
msgfmt
91.11
KB
-rwxr-xr-x
2026-05-14 17:36
msggrep
45.83
KB
-rwxr-xr-x
2026-05-14 17:36
msginit
53.94
KB
-rwxr-xr-x
2026-05-14 17:36
msgmerge
69.17
KB
-rwxr-xr-x
2026-05-14 17:36
msgunfmt
37.17
KB
-rwxr-xr-x
2026-05-14 17:36
msguniq
22.73
KB
-rwxr-xr-x
2026-05-14 17:36
msql2mysql
1.42
KB
-rwxr-xr-x
2026-05-14 17:22
my_print_defaults
3.74
MB
-rwxr-xr-x
2026-05-14 17:26
myisam_ftdump
5.58
MB
-rwxr-xr-x
2026-05-14 17:23
myisamchk
6
MB
-rwxr-xr-x
2026-05-14 17:23
myisamlog
5.55
MB
-rwxr-xr-x
2026-05-14 17:23
myisampack
5.66
MB
-rwxr-xr-x
2026-05-14 17:23
mysql
7.9
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_client_test
8
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_config
6.66
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_convert_table_format
4.11
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_find_rows
3.21
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_fix_extensions
1.22
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_install_db
14.42
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_plugin
3.78
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_secure_installation
8.53
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_setpermission
17.05
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_tzinfo_to_sql
3.58
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_upgrade
6.96
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_waitpid
3.74
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_zap
3.77
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlaccess
109.38
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlaccess.conf
1.66
KB
-rwxr-xr-x
2018-08-28 21:12
mysqladmin
6.9
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlbinlog
7.54
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlbug
10.43
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlcheck
6.88
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlctl
11.16
KB
-rwxr-xr-x
2026-05-14 17:36
mysqld
55.04
MB
-rwxr-xr-x
2026-05-14 17:26
mysqld_multi
23.55
KB
-rwxr-xr-x
2026-05-14 17:22
mysqld_safe
26.66
KB
-rwxr-xr-x
2026-05-14 17:22
mysqldump
7.1
MB
-rwxr-xr-x
2026-05-14 17:26
mysqldumpslow
7.19
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlhotcopy
34.04
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlimport
6.89
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlshow
6.88
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlslap
6.93
MB
-rwxr-xr-x
2026-05-14 17:26
mysqltest
7.52
MB
-rwxr-xr-x
2026-05-14 17:26
ncurses5-config
5.2
KB
-rwxr-xr-x
2026-05-14 17:22
ngettext
42.59
KB
-rwxr-xr-x
2026-05-14 17:36
nginxctl
2.23
KB
-rwxr-xr-x
2026-05-14 17:32
onig-config
1.35
KB
-rwxr-xr-x
2026-05-14 17:37
openssl
982.48
KB
-rwxr-xr-x
2026-05-14 17:18
osql
9.15
KB
-rwxr-xr-x
2026-05-14 17:35
pcre-config
2.31
KB
-rwxr-xr-x
2026-05-14 17:18
pcregrep
39.82
KB
-rwxr-xr-x
2026-05-14 17:18
pcretest
61.12
KB
-rwxr-xr-x
2026-05-14 17:18
perror
3.83
MB
-rwxr-xr-x
2026-05-14 17:26
pg_amcheck
108.26
KB
-rwxr-xr-x
2026-05-14 17:32
pg_archivecleanup
47.46
KB
-rwxr-xr-x
2026-05-14 17:32
pg_basebackup
137.1
KB
-rwxr-xr-x
2026-05-14 17:32
pg_checksums
65.62
KB
-rwxr-xr-x
2026-05-14 17:32
pg_config
45.98
KB
-rwxr-xr-x
2026-05-14 17:32
pg_controldata
60.11
KB
-rwxr-xr-x
2026-05-14 17:32
pg_ctl
75.36
KB
-rwxr-xr-x
2026-05-14 17:32
pg_dump
422.85
KB
-rwxr-xr-x
2026-05-14 17:32
pg_dumpall
116.84
KB
-rwxr-xr-x
2026-05-14 17:32
pg_isready
76.62
KB
-rwxr-xr-x
2026-05-14 17:32
pg_receivewal
96.14
KB
-rwxr-xr-x
2026-05-14 17:32
pg_recvlogical
96.74
KB
-rwxr-xr-x
2026-05-14 17:32
pg_resetwal
70.04
KB
-rwxr-xr-x
2026-05-14 17:32
pg_restore
192.88
KB
-rwxr-xr-x
2026-05-14 17:32
pg_rewind
144.02
KB
-rwxr-xr-x
2026-05-14 17:32
pg_test_fsync
48.18
KB
-rwxr-xr-x
2026-05-14 17:32
pg_test_timing
42.34
KB
-rwxr-xr-x
2026-05-14 17:32
pg_upgrade
158.74
KB
-rwxr-xr-x
2026-05-14 17:32
pg_verifybackup
116.66
KB
-rwxr-xr-x
2026-05-14 17:32
pg_waldump
106.17
KB
-rwxr-xr-x
2026-05-14 17:32
pgbench
193.3
KB
-rwxr-xr-x
2026-05-14 17:32
phar
14.54
KB
-rwxr-xr-x
2026-05-14 17:43
phar.phar
14.54
KB
-rwxr-xr-x
2026-05-14 17:43
php
19.99
MB
-rwxr-xr-x
2026-05-14 17:43
php-cgi
19.99
MB
-rwxr-xr-x
2026-05-14 17:43
php-config
5.14
KB
-rwxr-xr-x
2026-05-14 17:43
phpdbg
20.01
MB
-rwxr-xr-x
2026-05-14 17:43
phpize
4.43
KB
-rwxr-xr-x
2026-05-14 17:43
pkgdata
46.42
KB
-rwxr-xr-x
2026-05-14 17:39
pngtogd
8.54
KB
-rwxr-xr-x
2026-05-14 17:34
pngtogd2
8.59
KB
-rwxr-xr-x
2026-05-14 17:34
postgres
8.37
MB
-rwxr-xr-x
2026-05-14 17:32
postmaster
8.37
MB
-rwxr-xr-x
2026-05-14 17:32
psql
503.38
KB
-rwxr-xr-x
2026-05-14 17:32
rdjpgcom
13.3
KB
-rwxr-xr-x
2026-05-14 17:34
recode-sr-latin
18.17
KB
-rwxr-xr-x
2026-05-14 17:36
reindexdb
90.73
KB
-rwxr-xr-x
2026-05-14 17:32
replace
3.68
MB
-rwxr-xr-x
2026-05-14 17:26
reset
23.75
KB
-rwxr-xr-x
2026-05-14 17:22
resolve_stack_dump
3.75
MB
-rwxr-xr-x
2026-05-14 17:26
resolveip
3.74
MB
-rwxr-xr-x
2026-05-14 17:26
sqlite3
158.13
KB
-rwxr-xr-x
2026-05-14 17:33
tabs
17.53
KB
-rwxr-xr-x
2026-05-14 17:22
tdspool
405.46
KB
-rwxr-xr-x
2026-05-14 17:35
testgdbm
39.11
KB
-rwxr-xr-x
2026-05-14 17:34
tic
63.13
KB
-rwxr-xr-x
2026-05-14 17:22
toe
18.38
KB
-rwxr-xr-x
2026-05-14 17:22
tput
18.34
KB
-rwxr-xr-x
2026-05-14 17:22
tset
23.75
KB
-rwxr-xr-x
2026-05-14 17:22
tsql
381.83
KB
-rwxr-xr-x
2026-05-14 17:35
uconv
55.21
KB
-rwxr-xr-x
2026-05-14 17:39
vacuumdb
90.95
KB
-rwxr-xr-x
2026-05-14 17:32
webpng
17.77
KB
-rwxr-xr-x
2026-05-14 17:34
wrjpgcom
17.52
KB
-rwxr-xr-x
2026-05-14 17:34
xgettext
289.89
KB
-rwxr-xr-x
2026-05-14 17:36
xml2-config
1.77
KB
-rwxr-xr-x
2026-05-14 17:28
xmlcatalog
41.3
KB
-rwxr-xr-x
2026-05-14 17:28
xmllint
203.2
KB
-rwxr-xr-x
2026-05-14 17:28
xmlwf
33.66
KB
-rwxr-xr-x
2026-05-14 17:44
xslt-config
2.41
KB
-rwxr-xr-x
2026-05-14 17:28
xsltproc
81.52
KB
-rwxr-xr-x
2026-05-14 17:28
zipcmp
23.77
KB
-rwxr-xr-x
2026-05-14 17:37
zipmerge
14.38
KB
-rwxr-xr-x
2026-05-14 17:37
ziptool
48.5
KB
-rwxr-xr-x
2026-05-14 17:37
Save
Rename
#!/bin/sh # Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA config=".my.cnf.$$" command=".mysql.$$" mysql_client="" trap "interrupt" 1 2 3 6 15 rootpass="" echo_n= echo_c= set_echo_compat() { case `echo "testing\c"`,`echo -n testing` in *c*,-n*) echo_n= echo_c= ;; *c*,*) echo_n=-n echo_c= ;; *) echo_n= echo_c='\c' ;; esac } validate_reply () { ret=0 if [ -z "$1" ]; then reply=y return $ret fi case $1 in y|Y|yes|Yes|YES) reply=y ;; n|N|no|No|NO) reply=n ;; *) ret=1 ;; esac return $ret } prepare() { touch $config $command chmod 600 $config $command } find_mysql_client() { for n in ./bin/mysql mysql do $n --no-defaults --help > /dev/null 2>&1 status=$? if test $status -eq 0 then mysql_client=$n return fi done echo "Can't find a 'mysql' client in PATH or ./bin" exit 1 } do_query() { echo "$1" >$command #sed 's,^,> ,' < $command # Debugging $mysql_client --defaults-file=$config <$command return $? } # Simple escape mechanism (\-escape any ' and \), suitable for two contexts: # - single-quoted SQL strings # - single-quoted option values on the right hand side of = in my.cnf # # These two contexts don't handle escapes identically. SQL strings allow # quoting any character (\C => C, for any C), but my.cnf parsing allows # quoting only \, ' or ". For example, password='a\b' quotes a 3-character # string in my.cnf, but a 2-character string in SQL. # # This simple escape works correctly in both places. basic_single_escape () { # The quoting on this sed command is a bit complex. Single-quoted strings # don't allow *any* escape mechanism, so they cannot contain a single # quote. The string sed gets (as argv[1]) is: s/\(['\]\)/\\\1/g # # Inside a character class, \ and ' are not special, so the ['\] character # class is balanced and contains two characters. echo "$1" | sed 's/\(['"'"'\]\)/\\\1/g' } make_config() { echo "# mysql_secure_installation config file" >$config echo "[mysql]" >>$config echo "user=root" >>$config esc_pass=`basic_single_escape "$rootpass"` echo "password='$esc_pass'" >>$config #sed 's,^,> ,' < $config # Debugging } get_root_password() { status=1 while [ $status -eq 1 ]; do stty -echo echo $echo_n "Enter current password for root (enter for none): $echo_c" read password echo stty echo if [ "x$password" = "x" ]; then hadpass=0 else hadpass=1 fi rootpass=$password make_config do_query "" status=$? done echo "OK, successfully used password, moving on..." echo } set_root_password() { stty -echo echo $echo_n "New password: $echo_c" read password1 echo echo $echo_n "Re-enter new password: $echo_c" read password2 echo stty echo if [ "$password1" != "$password2" ]; then echo "Sorry, passwords do not match." echo return 1 fi if [ "$password1" = "" ]; then echo "Sorry, you can't use an empty password here." echo return 1 fi esc_pass=`basic_single_escape "$password1"` do_query "UPDATE mysql.user SET Password=PASSWORD('$esc_pass') WHERE User='root';" if [ $? -eq 0 ]; then echo "Password updated successfully!" echo "Reloading privilege tables.." reload_privilege_tables if [ $? -eq 1 ]; then clean_and_exit fi echo rootpass=$password1 make_config else echo "Password update failed!" clean_and_exit fi return 0 } remove_anonymous_users() { do_query "DELETE FROM mysql.user WHERE User='';" if [ $? -eq 0 ]; then echo " ... Success!" else echo " ... Failed!" clean_and_exit fi return 0 } remove_remote_root() { do_query "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');" if [ $? -eq 0 ]; then echo " ... Success!" else echo " ... Failed!" fi } remove_test_database() { echo " - Dropping test database..." do_query "DROP DATABASE test;" if [ $? -eq 0 ]; then echo " ... Success!" else echo " ... Failed! Not critical, keep moving..." fi echo " - Removing privileges on test database..." do_query "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'" if [ $? -eq 0 ]; then echo " ... Success!" else echo " ... Failed! Not critical, keep moving..." fi return 0 } reload_privilege_tables() { do_query "FLUSH PRIVILEGES;" if [ $? -eq 0 ]; then echo " ... Success!" return 0 else echo " ... Failed!" return 1 fi } interrupt() { echo echo "Aborting!" echo cleanup stty echo exit 1 } cleanup() { echo "Cleaning up..." rm -f $config $command } # Remove the files before exiting. clean_and_exit() { cleanup exit 1 } # The actual script starts here prepare find_mysql_client set_echo_compat echo echo echo echo echo "NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL" echo " SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!" echo echo echo "In order to log into MySQL to secure it, we'll need the current" echo "password for the root user. If you've just installed MySQL, and" echo "you haven't set the root password yet, the password will be blank," echo "so you should just press enter here." echo get_root_password # # Set the root password # echo "Setting the root password ensures that nobody can log into the MySQL" echo "root user without the proper authorisation." echo while true ; do if [ $hadpass -eq 0 ]; then echo $echo_n "Set root password? [Y/n] $echo_c" else echo "You already have a root password set, so you can safely answer 'n'." echo echo $echo_n "Change the root password? [Y/n] $echo_c" fi read reply validate_reply $reply && break done if [ "$reply" = "n" ]; then echo " ... skipping." else status=1 while [ $status -eq 1 ]; do set_root_password status=$? done fi echo # # Remove anonymous users # echo "By default, a MySQL installation has an anonymous user, allowing anyone" echo "to log into MySQL without having to have a user account created for" echo "them. This is intended only for testing, and to make the installation" echo "go a bit smoother. You should remove them before moving into a" echo "production environment." echo while true ; do echo $echo_n "Remove anonymous users? [Y/n] $echo_c" read reply validate_reply $reply && break done if [ "$reply" = "n" ]; then echo " ... skipping." else remove_anonymous_users fi echo # # Disallow remote root login # echo "Normally, root should only be allowed to connect from 'localhost'. This" echo "ensures that someone cannot guess at the root password from the network." echo while true ; do echo $echo_n "Disallow root login remotely? [Y/n] $echo_c" read reply validate_reply $reply && break done if [ "$reply" = "n" ]; then echo " ... skipping." else remove_remote_root fi echo # # Remove test database # echo "By default, MySQL comes with a database named 'test' that anyone can" echo "access. This is also intended only for testing, and should be removed" echo "before moving into a production environment." echo while true ; do echo $echo_n "Remove test database and access to it? [Y/n] $echo_c" read reply validate_reply $reply && break done if [ "$reply" = "n" ]; then echo " ... skipping." else remove_test_database fi echo # # Reload privilege tables # echo "Reloading the privilege tables will ensure that all changes made so far" echo "will take effect immediately." echo while true ; do echo $echo_n "Reload privilege tables now? [Y/n] $echo_c" read reply validate_reply $reply && break done if [ "$reply" = "n" ]; then echo " ... skipping." else reload_privilege_tables fi echo cleanup echo echo echo echo "All done! If you've completed all of the above steps, your MySQL" echo "installation should now be secure." echo echo "Thanks for using MySQL!" echo echo