netbird
netbird copied to clipboard
Running without root on macOS
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:
- 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.
I don't think you can install/start service as non root user. You can probably run netbird as foreground service.