Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to change pi-hole admin password #186

Closed
bencarter4185 opened this issue Aug 6, 2021 · 5 comments
Closed

Attempting to change pi-hole admin password #186

bencarter4185 opened this issue Aug 6, 2021 · 5 comments
Labels
question Further information is requested

Comments

@bencarter4185
Copy link

I'm attempting to change the password required by the pihole admin dashboard, and have attempted to do so by changing the pihole-password in ~/internet-pi/config.yml, then restarting the pihole by performing following this post.

The admin dashboard, however, still appears to be using the old password. I also performed a reboot of the Pi, then ran the ansible-playbook again, but this also appeared not to update the password. Any help on the correct steps to take would be appreciated, unfortunately I'm very new to using Docker containers.

@geerlingguy
Copy link
Owner

@bencarter4185 - For Pi-hole, the admin password that is set in config.yml is only used on the first startup. After that you have to manage password changes/updates in the admin UI through a browser.

@geerlingguy geerlingguy added the question Further information is requested label Aug 6, 2021
@bencarter4185
Copy link
Author

Hi Jeff,

Thanks for the response—though I was worried you would say that. All I've seen online with regards to changing a pihole password through the web ui has suggested the only method is to use a pihole command in terminal, e.g. sudo pihole -a -p to remove the password outright. Obviously I assume that's impossible if the pihole is installed inside a docker container.

Unless I'm missing something obvious, I can't find anywhere in the web-ui which would allow you to change the password, and the 'forgot password' section is equally unhelpful:

image

I think it may be fair to assume that a workaround doesn't exist. I would add a feature request on the pi-hole Discourse, but my account is too new to do so.

@802compute
Copy link

@bencarter4185 You can run the following command on the host that's running the containers

docker exec -it <container-id> /bin/bash (replace with the container id of the Pi-Hole container)

Once you press the Enter key, you'll have a terminal prompt for the Pi-Hole container where you can then type sudo pihole -a -p

@bencarter4185
Copy link
Author

@802compute thank you! That has worked perfectly.

@Modged
Copy link

Modged commented Sep 7, 2022

@bencarter4185 You can run the following command on the host that's running the containers

docker exec -it <container-id> /bin/bash (replace with the container id of the Pi-Hole container)

Once you press the Enter key, you'll have a terminal prompt for the Pi-Hole container where you can then type sudo pihole -a -p

Hi I am sorry to reopen this issue but I am facing the same problem.
I have tried the above suggested solution and it didnt work for me ...
If I run docker stop and then docker start it restarts with the old password :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants