要用到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
bin
directory withcd
command and run.\Htpasswd
.Other versions ofhtpasswd
could be used, but only if they support bcrypt hash encryption, which rules out e.g. most web-hostedhtpasswd
generators.
- Ubuntu:
- Use
htpasswd
utility 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.yaml
in the text editor:sudo <EDITOR> ./AdGuardHome.yaml
- In the
users:
section find your user name and set<HASH>
value for thepassword
setting:users: - name: ... password: <HASH>
- Save the file, restart AGH. Now you’ll be able to log in to Web interface using your new password.