netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Running without root on macOS

Open sandstrom opened this issue 1 year ago • 1 comments

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.

sandstrom avatar Feb 08 '24 18:02 sandstrom

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

myevit avatar Feb 23 '24 21:02 myevit