nagios重新設定web口令

來源:互聯網
上載者:User

nagios安裝過程中會要求輸入nagios web訪問介面的帳號口令

預設帳號為nagiosadmin,但是過段時間如果忘記口令該怎麼辦?

別急。

以ubuntu為例,apt-get安裝nagios的話,nagios web介面的帳號口令儲存在/etc/nagios3/htpasswd.users

$ cat /etc/nagios3/htpasswd.users nagiosadmin:$apr1$1UTeBvnL$JMM****RfQzCYA61

這裡只有一個nagiosadmin帳號,口令當然是加密儲存的。

這樣我們仍然無法得到口令明文,但是可以利用htpasswd命令重新設定帳號的口令。

sudo htpasswd -c /etc/nagios3/htpasswd.users nagiosadminNew password: Re-type new password:  

輸入新口令後,會要求確認口令,這時候nagiosadmin帳號的口令就被修改了。

回到web頁面登陸就沒有問題了。

htpasswd命令是apache用來管理用於基本認證的使用者檔案的,詳細使用可參考:

http://www.leapsoul.cn/?p=472

http://www.phpchina.com/resource/manual/apache/programs/htpasswd.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.