Skip to content

How does Homebrew run services as root without sudo? #4925

Answered by sryze
sryze asked this question in Everyday usage
Discussion options

You must be logged in to vote

Problem solved:

Deleted rm /Library/LaunchDaemons/homebrew.mxcl.dnscrypt-proxy.plist and rebooted, dnscrypt-proxy no longer starts as root.

But apparently it's not that useful to run is as non-root because then it can't listen on the 53 port and macOS will ignore DNS servers specified in network settings that are not running on port 53 (or at least for me it does so). So in the end I started the service with sudo, which in turn changed the owner of corresponding files to root.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@sryze
Comment options

@SMillerDev
Comment options

@sryze
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sryze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants