cactiのログインパスワード忘れたので,調べてみました。

過去の資料から

「* 初期データ作成用SQL/usr/share/doc/cacti-0.8.6h/cacti.sql)
o アカウント作成部分のSQL
+ INSERT INTO user_auth VALUES (1,’admin’,’21232f297a57a5a743894a0e4a801fc3′,0,’Administrator’,’on’,’on’,’on’,’on’,’on’,1, 1,1,1,1);
+ INSERT INTO user_auth VALUES (3,’guest’,’43e9a4ab75570f5b’,0,’Guest Account’,’on’,’on’,’on’,’on’,’on’,3,1,1,1,1);

ここの「21232f297a57a5a743894a0e4a801fc3」が「admin」という文字列の暗号化後だと知ってるので、この値でDBのuser_authテーブルのid=1の列のpassword列の値をupdate文を書いて上書きした。

adminというパスワードに更新されて無事ログインできた。」
を参考にして試してみました。
参考URL:http://d.hatena.ne.jp/susatadahiro/20061025

# 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 133532 to server version: 4.1.20

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> update user_auth set password=’21232f297a57a5a743894a0e4a801fc3′;
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0