Closed jyundt closed 1 month ago
Currently, the .deb packages create the headscale user with /bin/sh:
headscale
/bin/sh
https://github.com/juanfont/headscale/blob/fe68f503289db6cb1c2a568b8ae02a45ac632dd6/docs/packaging/postinstall.sh#L32
However, the docs list using /usr/sbin/nologin: https://github.com/juanfont/headscale/blob/fe68f503289db6cb1c2a568b8ae02a45ac632dd6/docs/running-headscale-linux-manual.md?plain=1#L44
/usr/sbin/nologin
Create the headscale user with a default shell of /usr/sbin/nologin. I believe this also generally aligns with standard best practices as well.
- OS:Ubuntu 22.04.4 - Headscale version: 0.23.0-rc.1 - Tailscale version: N/A
No response
Quick update: I noticed that the headscale homedir wasn't set correctly either. I included that in my PR: https://github.com/juanfont/headscale/pull/2134
Is this a support request?
Is there an existing issue for this?
Current Behavior
Currently, the .deb packages create the
headscale
user with/bin/sh
:https://github.com/juanfont/headscale/blob/fe68f503289db6cb1c2a568b8ae02a45ac632dd6/docs/packaging/postinstall.sh#L32
However, the docs list using
/usr/sbin/nologin
: https://github.com/juanfont/headscale/blob/fe68f503289db6cb1c2a568b8ae02a45ac632dd6/docs/running-headscale-linux-manual.md?plain=1#L44Expected Behavior
Create the
headscale
user with a default shell of/usr/sbin/nologin
. I believe this also generally aligns with standard best practices as well.Steps To Reproduce
headscale
.debheadscale
shellEnvironment
Runtime environment
Anything else?
No response