unbound want start / change user and group from root to unbound

Daniel J. Luke dluke at geeklair.net
Fri Dec 12 09:46:27 PST 2014


> On Dec 12, 2014, at 12:29 PM, FritzS - gmx <fritzs at gmx.net> wrote:
> After installing I use
> sudo port load unbound
> but unbound want seen as daemon - only daemondo
> In the Activity Monitor I see only the daemondo daemon - is the unbound
> hidden behind?
> Unbound did not resolve names.

I think you first need to create a config file. If your prefix is the default (/opt/local), this may be as simple as doing `cp /opt/local/etc/unbound/unbound.conf-dist /opt/local/etc/unbound/unbound.conf`

You probably want to look at the conf file to make sure it's set up how you want it to be set up.

> What could I do to change from running under root user to the running
> under the unbound user?

the default will run it as the unbound user (or rather, it will drop privileges after it gets the resources it needs)

> And using chroot too?
> 
> This messages I seen at each load of unbound:
> COMMAND=/opt/local/bin/port load unbound
> Dec 12 17:55:42 mymac com.apple.xpc.launchd[1] (org.macports.unbound): The
> Debug key is no longer respected. Please remove it.
> Dec 12 17:55:42 mymac com.apple.xpc.launchd[1] (org.macports.unbound):
> This service is defined to be constantly running and is inherently
> inefficient.
> Dec 12 17:55:45 mymac mdworker[64899]: iWork MDI raised an exception:
> Could not find the end of central directory record

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+






More information about the macports-users mailing list