Webmin 設定したパスワードを忘れた場合の対処法

webminでroot等のパスワードを設定して、忘れてしまった場合の対処法となります。ユーザー名すら忘れてしまった場合も対応可能です。
環境
- OS CentOS Linux release 7.7.1908 (Core)
- Webmin webmin-1.941-1.noarch
パスワード変更
パスワードを変更できるコマンドがあるので、そちらを実行します。
※ここではrootユーザーのパスワードをpassに変更してます
/usr/libexec/webmin/changepass.pl /etc/webmin ユーザ パスワード
## 例
/usr/libexec/webmin/changepass.pl /etc/webmin root pass
ちなみに、ユーザーすらも忘れた場合は、適当なユーザーでコマンドを実行すれば、存在するユーザーが表示されます。
※ここではrootユーザーが存在することが確認できます。
/usr/libexec/webmin/changepass.pl /etc/webmin mebee mebee
The Webmin user mebee does not exist
The users on your system are: root
-
前の記事
Ubuntu20.04にWordPress.com desktop appをインストールする 2020.03.25
-
次の記事
Vue.js lingalleryを利用してシンプルなギャラリーを実装する 2020.03.25
コメントを書く