You should never have to work with the root user account on Linux, especially on a desktop installation. There can be occasions when you need to use root on a server. If you must use root, do so with ...
That also means your network becomes more complicated the moment you connect a Pi-hole instance, and a simple configuration ...