Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Should entrance really run as nobody? #51

Closed
TheTechRobo opened this issue Dec 21, 2020 · 3 comments
Closed

Should entrance really run as nobody? #51

TheTechRobo opened this issue Dec 21, 2020 · 3 comments

Comments

@TheTechRobo
Copy link
Contributor

I've heard from multiple sources (https://serverfault.com/a/110335/590596, https://unix.stackexchange.com/a/186581/401349, and one other that I can't find anymore) that the nobody user with daemons should be avoided. Is there a reason that it was switched from user entrance to nobody?

@wltjr
Copy link
Member

wltjr commented Jan 23, 2021

Hi, sorry for the delay. No, it should not run as nobody by default, but rather a entrance user, or some user created for entrance, or an existing account. I did not switch it from entrance to nobody, I believe, it was like that when I took over the code base. However, there is a configurable start_user in the entrance.conf file, which you can use to run entrance under a different user. I do it under travis user account in travis-ci.

I am fairly certain, it can be packaged and installed with a specific user account, instead of nobody. But nobody will be a fall back if that account does not exist. Thus, it is mostly a packaging issue, with the default being nobody, as that account is guaranteed to exist on all systems.

Creating an entrance user account would be something done as part of packaging and installing entrance, rather than something that would be handled by the build system. It could be configurable, but its just a setting in the conf file, so that is easily changed via sed, etc. It does not merit build system modifications for such.

@TheTechRobo
Copy link
Contributor Author

Thanks for that detailed answer. :)

@wltjr
Copy link
Member

wltjr commented Feb 6, 2021

Sure thing! Guess I will close this as there is nothing really to do at this time. If you find entrance does not work running under a user other than nobody, please open a new issue. Thank you!

@wltjr wltjr closed this as completed Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants