How does Homebrew run services as root without sudo? #4925
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Because you enabled the service as sudo? There is simply no other way. |
Beta Was this translation helpful? Give feedback.
-
Problem solved: Deleted 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 |
Beta Was this translation helpful? Give feedback.
Problem solved:
Deleted
rm /Library/LaunchDaemons/homebrew.mxcl.dnscrypt-proxy.plist
and rebooted,dnscrypt-proxy
no longer starts asroot
.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.