Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended to Install as root/non-root #2452

Open
bilogic opened this issue Oct 24, 2024 · 5 comments
Open

Recommended to Install as root/non-root #2452

bilogic opened this issue Oct 24, 2024 · 5 comments

Comments

@bilogic
Copy link
Contributor

bilogic commented Oct 24, 2024

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
Copy link
Contributor Author

bilogic commented Oct 24, 2024

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
Copy link
Member

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

@bilogic
Copy link
Contributor Author

bilogic commented Oct 24, 2024

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
Copy link
Contributor

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
Copy link
Contributor Author

bilogic commented Oct 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants