For running dietpi, is it best to not login as root when able?

Hello, I am just getting Dietpi up and running on an old laptop of mine (not dual booting) and I have a question regarding security.

My laptop is running Dietpi fine, and I plan to use this system for pi-hole (via docker) at first before expanding to some other things (like adding a VPN to access my home network from away) but I am wanting to start only with pi-hole and learn because I am a noob with linux.

As I was looking at r/linux4noobs, I noticed this comment on a post about security and antivirus and this user recommends not being logged in as root for most functions even if the distro allows it. I know from looking at other forum posts that Dietpi installs all programs via root.

This may be a stupid question, but I want to learn and make sure I don’t do something stupid for my home network: can I run programs on another sign in besides root and are there other security measures beyond a firewall and fail2ban for an internet facing system that I should be looking into?

We don’t install all programs as user root. It’s needed to setup the apps but most of them are running with their own local users. These are app individual users, not even able to login from a shell.

But why do you want to use Docker to run PiHole? Quite some overhead for such a small application. We offer a native installation option for PiHole, without Docker.

Regarding your thoughts about root user, Docker is running as root by default. And for a non experienced user, it might be tough to get Docker running without root.

It’s needed to setup the apps but most of them are running with their own local users. These are app individual users, not even able to login from a shell.

Awesome! I wanted to be sure before I made too big of a mistake.

To be fully honest, it’s what my IT friend does on his RPi. My other IT friend runs AdGuard directly on his miniPC. Looking into it more, I thought it was done in Docker more as a way to prevent other issues on the machine, but I’m not really sure.

Regarding your thoughts about root user, Docker is running as root by default. And for a non experienced user, it might be tough to get Docker running without root.

I was worried about that. This is the step I’m on currently. I’m moving very slowly with little time due to work and family.

Yes Docker can simplify things but it also introduce another layer that can fail an additional software thst will consume system resources like the Docker engine. To keep it simple just install PiHole from our repository. No need to deal with Docker for such a simple and small app. It’s not worth it.