[GH-ISSUE #1551] Running without root on macOS #2513

Closed
opened 2026-08-05 00:47:32 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @sandstrom on GitHub (Feb 8, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1551

The current install flow requires sudo:

sudo netbird service install
sudo netbird service

Ideally we should be able to run netbird without root.

Some inspiration and potentially relevant links:

Also, Docker Desktop has some examples on how to tackle the problem of running in user land (https://docs.docker.com/desktop/mac/permission-requirements/). The have a thin privileged agent, but the rest is user-space.

Originally created by @sandstrom on GitHub (Feb 8, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1551 The current install flow requires sudo: ```sh sudo netbird service install sudo netbird service ``` Ideally we should be able to run netbird without root. Some inspiration and potentially relevant links: - https://news.ycombinator.com/item?id=33700136 - https://github.com/sandialabs/wiretap Also, Docker Desktop has some examples on how to tackle the problem of running in user land (https://docs.docker.com/desktop/mac/permission-requirements/). The have a thin privileged agent, but the rest is user-space.
Author
Owner

@myevit commented on GitHub (Feb 23, 2024):

I don't think you can install/start service as non root user. You can probably run netbird as foreground service.

<!-- gh-comment-id:1962004646 --> @myevit commented on GitHub (Feb 23, 2024): I don't think you can install/start service as non root user. You can probably run netbird as foreground service.
Author
Owner

@jakob1379 commented on GitHub (Jan 24, 2025):

Systemctl runs fine as user services, that just needs to be recognized by the Netbird client and properly set the services in userspace instead

<!-- gh-comment-id:2611676775 --> @jakob1379 commented on GitHub (Jan 24, 2025): Systemctl runs fine as user services, that just needs to be recognized by the Netbird client and properly set the services in userspace instead
Author
Owner

@lixmal commented on GitHub (Jan 24, 2025):

You can run netbird without root: https://docs.netbird.io/how-to/netbird-on-faas

or the container image netbirdio/netbird:rootless-latest

<!-- gh-comment-id:2612095567 --> @lixmal commented on GitHub (Jan 24, 2025): You can run netbird without root: https://docs.netbird.io/how-to/netbird-on-faas or the container image `netbirdio/netbird:rootless-latest`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#2513