Running without root on macOS #621

Closed
opened 2025-11-20 05:14:48 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @sandstrom on GitHub (Feb 8, 2024).

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). 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.

@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

@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

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#621