Change default password on Asustor Nas

I understand that I can change the password for pihole using the [pihole -a -p] command in normal systems or with a raspberry pi. I am running pihole on a Asustor Nas and I am having trouble finding the correct command line to change the password.

Asustor LOCKERSTOR 2 (AS6602T) running ADM vers. 4.2.0.RE71 and Pihole vers. v5.14.2.r01

Please let me know if someone has previously figured this out or can help out.

1 Like

I'm not sure how this device is installing Pi-hole. Is it some custom installation? Do they install it bare-metal? Or as a docker container?


In any case I would try to access the device via SSH and try from there. You can activate SSH via

1 Like

Thank you for the quick reply, the nas is using a Docker Engine vers. 20.10.22.r2

and I have tried entering the commands via SSH, ive even tried things like [ cd /volume1/docker/pihole or pihole-docker ] and it still can not find the program via terminal.
I might try posting this on the ASUSTOR forum as well to increase the audience.

Are you running Pi-hole in a docker container? You use the docker environment variables to set things up per the fine documentation at
https://github.com/pi-hole/docker-pi-hole

1 Like

Thank you Dan, yes it is running in a docker container, I have reviewed the github, and from what I can see I would have to create a new container with the included changes, I am trying to just edit the already created environment variables. So far unsuccessfully. If you or anyone else can provide some documentation on how to edit currently running or active containers, it would be greatly appreciated.

So I figured it out if anyone has the same issue in the future, on the Asustor App central, you will need to install Portainer.io to manage the container, and under your local containers list there should be pihole listed, you can enter the console from there and just use the command [ pihole -a -p ] to set a new password. Thank you everyone for trying to help, you lead me down git hub rabbit holes that eventually got me to the answer.

That's not how the docker paradigm works. Containers are ephemeral, you can bring them up and take them down at will.

That will change the password for the currently running container. You'll lose all of that when you start a new container.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.