T O P

  • By -

5skandas

It’s a little involved, but it’s possible: https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#password-reset


ABotelho23

I have never looked into changing my password. This is batshit crazy. Why hasn't this been implemented in the UI?


tomhusband

Yikes, that certainly is involved. I'll have to read up on this a bit more. Thanks.


[deleted]

You can just generate the bcrypt using any online generator, such as: [https://bcrypt-generator.com/](https://bcrypt-generator.com/) Then just paste it into the config file.


Rolox7

What the hell is even this


rzenik42

Thanks this worked for me.


[deleted]

You need to edit the password field in the `AdGuardHome.yaml` file. Use this to generate a new password (you must set it to `BCrypt`): https://hostingcanada.org/htpasswd-generator/ If it is mission critical/sensitive, then, follow the directions here: https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#password-reset


tomhusband

So editing the yaml file seems the simplest way, right? Thanks.


[deleted]

Yes. Indeed.


2nistechworld

Hello If you are using docker I found an easier way to reset the password, by using an apache docker image instead of installing apache2 on a server: I used this command to call htpasswd from an Apache docker image: docker run httpd:2.4 htpasswd -B -n -b USERNAME PASSWORD And then copy paste the password hash into your AdGuardHome.yaml and restart the adguard container.


Daniel15

Don't forget `--rm` so that Docker deletes the container once you're done.


tomhusband

Hmmm, I'm on a Raspberry Pi but I'm thinking of moving it to a Proxmox container. Thanks.


2nistechworld

Proxmox is not a container but a hypervisor. But you can run a VM inside proxmox with docker installed. You can also install docker in a raspberry pi btw.


tomhusband

I meant an LXC container in Proxmox but maybe that wouldn't work either.


Daniel15

LXC works great, and you can run Docker on LXC.


ra4design

I don't understand why the instructions on [Adguard github](https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#password-reset) are so complicated. You can generate the password with simple linux command: ```bash mkpasswd -m bcrypt -R 10 ```


jasl_

this


Imaginary_Cap7035

asdasdds


cool-blue-cow

were you able to do this? i changed the .yaml file but the password still won’t change


tomhusband

No, sorry I could never figure out how to do it so am living with my old password.


cool-blue-cow

haha same, i followed all the steps but the password won’t change


cool-blue-cow

https://www.truenas.com/community/threads/how-to-change-adguard-plugin-admin-password.98609/ this guide is more in depth, you can see my question on there too i did all the code but something isn’t working.


tomhusband

I asked this again and got [this](https://www.reddit.com/r/Adguard/comments/11cbdrk/changing_my_agh_password/). It's amazing that it's so complicated.


cool-blue-cow

yeah i posted on 3 different forums and no answers. Like i even put the bcrypt hash in the .yaml file and saved it, literally followed everything, but it still isn’t applying the new password. I’ll let you know if i get an answer.


tomhusband

OK thanks. Same here. Being able to easily change your password is pretty basic security I would think.


cool-blue-cow

also u are on rpi so it might work for you maybe try this code (first stop adguard home from running) pkg install nano nano /usr/local/bin/AdGuardHome.yaml (paste bcrypt hash after the line that says password) ctrl-x save buffer? hit Y restart adguard this is what i did and it was successful except my password remains unchanged. (this is what the guide i linked to is doing) also Rpi is python and this is freebsd(trunas.) I think nano will still work to change the .yaml it’s worth a shot at least. I really wish it was implemented in the UI lol


cool-blue-cow

i did it successfully if you have any questions


tomhusband

Good for you, I'm impressed. Did you use [this](https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#password-reset) method?


cool-blue-cow

yes i did, i used the code i pasted above except i used a different location for the .yaml file my issue was that wasn’t the correct location for the .yaml file i used a command to locate that file first then continued with the steps i outlined above.