要用到apache模块的 htpasswd,所以你得先下载apache
———————
Reset Web Password
Please follow these steps to create a new password for your user account:
- Install
htpasswd, which is a part of Apache2 Web Server:- Ubuntu:
sudo apt-get install apache2 - Fedora:
sudo dnf install apache2 - Windows:Choose a download option from https://httpd.apache.org/docs/current/platform/windows.html#down, extract the downloaded file into a new directory, open a terminal, navigate to its
bindirectory withcdcommand and run.\Htpasswd.Other versions ofhtpasswdcould be used, but only if they support bcrypt hash encryption, which rules out e.g. most web-hostedhtpasswdgenerators.
- Ubuntu:
- Use
htpasswdutility to generate a new hash:- Ubuntu/Fedora:
htpasswd -B -n -b <USERNAME> <PASSWORD> - Windows:
.\Htpasswd -B -n -b <USERNAME> <PASSWORD>
It will print
<USERNAME>:<HASH>to the terminal. - Ubuntu/Fedora:
- Open
AdGuardHome.yamlin the text editor:sudo <EDITOR> ./AdGuardHome.yaml - In the
users:section find your user name and set<HASH>value for thepasswordsetting:users: - name: ... password: <HASH> - Save the file, restart AGH. Now you’ll be able to log in to Web interface using your new password.
