Install MIAB as 'root' or admin user?

Hello

When setting up a new installation, should the ‘curl -s https://mailinabox.email/setup…’ command be run when you are logged in as ‘root’, or whatever system admin user created to carry out maintenance etc. I ask because systems on a VPS are usually (in my experience) set up with the root user created when the VPS is created. Bare metal system creation however gives you a system admin user. The Setup guide does not specify which user is preferred. Running the command ‘curl…’ above as different users changes where the MIAB files are located, well the "mailinbox’ directory anyway.

Thanks

I think it is best if you run it as a privileged user, i.e. with sudo. I rarely need to login as root user, and I think that’s also good security practice to use sudo instead of a root user.
There is indeed sometimes confusion when people have run the mailinabox setup as root, and as normal user, having the mailinabox directory both at /root/ and at /home/user/. You can determine the one your system is using by looking at /usr/local/bin/mailinabox which refers to the directory which is used.