Gentooの環境だと、/usr/share/webapps/cacti/0.8.7i/htdocs/cacti.sqlにアカウント作成時に使用したSQL文があります。
INSERT INTO user_auth VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',0,'Administrator','on','on','on','on','on',1,1,1,1,1,'on'); INSERT INTO user_auth VALUES (3,'guest','43e9a4ab75570f5b',0,'Guest Account','on','on','on','on','on',3,1,1,1,1,'');
この'21232f297a57a5a743894a0e4a801fc3'の部分が初期パスワード(admin)を表しているので、DB上でこの値に置き換えます。
# mysql cacti -u root -p Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9329 Server version: 5.1.66-log Gentoo Linux mysql-5.1.66 Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> update user_auth set password='21232f297a57a5a743894a0e4a801fc3' where username='admin'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0
これで、初期パスワードにリセットされました。
0 件のコメント:
新しいコメントは書き込めません。