mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
14.04k stars 1.44k forks source link

Recommended to Install as root/non-root #2452

Open bilogic opened 4 weeks ago

bilogic commented 4 weeks ago

image

Possible to explicity state which is the recommended installation approach on the homepage near this part? I know sudo implies installing as non-root, but it is inferred and some may not know.

Many have asked before too, e.g. https://discourse.mailinabox.email/t/should-miab-be-installed-from-root-or-non-root-user/4648

bilogic commented 4 weeks ago

I just realized this might be better transferred over to https://github.com/mail-in-a-box/mailinabox.email

And I'm ready to file a PR.

JoshData commented 4 weeks ago

I don't think it matters as long as you do the same thing whenever you run the script again in the future.

bilogic commented 4 weeks ago

I found myself trying to recall several times which one it is when installing a new box, wondering if there are security issue using root vs whether it will work properly as non-root.

Possible I PR to add that in, i.e. it doesn't matter root/non-root?

Otherwise I will forget again and this will repeat in a few months. 🙏

myfirstnameispaul commented 4 weeks ago

A user can delete files (and empty directories) created with sudo and owned by root that are in the user home directory, but not in subdirectories. I haven't explored this aspect of permissions before, not sure if it is relevant.

bilogic commented 4 weeks ago

Sure, my request is to have this documented so that I don't have to ponder/try to recall the next round.