[Bug] Debian packages use incorrect shell #794

Closed
opened 2025-12-29 02:24:06 +01:00 by adam · 1 comment
Owner

Originally created by @jyundt on GitHub (Sep 14, 2024).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently, the .deb packages create the headscale user with /bin/sh:

fe68f50328/docs/packaging/postinstall.sh (L32)

However, the docs list using /usr/sbin/nologin: fe68f50328/docs/running-headscale-linux-manual.md (L44)

Expected 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

  1. Install headscale .deb
  2. verify headscale shell

Environment

- OS:Ubuntu 22.04.4
- Headscale version: 0.23.0-rc.1
- Tailscale version: N/A

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Anything else?

No response

Originally created by @jyundt on GitHub (Sep 14, 2024). ### Is this a support request? - [X] This is not a support request ### Is there an existing issue for this? - [X] I have searched the existing issues ### 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#L44 ### Expected 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 1. Install `headscale` .deb 2. verify `headscale` shell ### Environment ```markdown - OS:Ubuntu 22.04.4 - Headscale version: 0.23.0-rc.1 - Tailscale version: N/A ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Anything else? _No response_
adam added the bug label 2025-12-29 02:24:06 +01:00
adam closed this issue 2025-12-29 02:24:06 +01:00
Author
Owner

@jyundt commented on GitHub (Sep 14, 2024):

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

@jyundt commented on GitHub (Sep 14, 2024): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#794