<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Two separate problems there:<div class="">bigapple:~ root# port contents unbound|head<br class="">Port unbound contains:<br class="">  /Library/LaunchDaemons/org.macports.unbound.plist<br class="">  /opt/local/etc/LaunchDaemons/org.macports.unbound/org.macports.unbound.plist<br class="">  /opt/local/etc/LaunchDaemons/org.macports.unbound/unbound.wrapper<br class="">...</div><div class=""><br class=""></div><div class="">(Often, MacPorts startups operate via a wrapper that tries to reconcile the different behavior of daemons written for other Unix/Linux flavors with the expectation of launchd that programs must not background themselves, close and reopen stdin, stdout, and stderr, etc; so don't be surprised if that's a bit hard to follow.  I haven't always found the wrapper to be the best solution, but it usually works.)</div><div class=""><br class=""></div><div class="">As for the permissions, I didn't have that problem:</div><div class=""><br class=""></div><div class="">bigapple:~ root# find /opt/local \( -user unbound -o -group unbound \) -ls<br class="">180058793        0 drwxrwxr-x    4 root             unbound               128 Aug 10 10:20 /opt/local/etc/unbound<br class="">180058801        8 -rw-r--r--    1 unbound          unbound               758 Aug 10 10:20 /opt/local/etc/unbound/root.key<br class="">180058794        0 drwxr-xr-x    3 unbound          unbound                96 Aug 10 10:20 /opt/local/var/run/unbound<br class="">180058765        0 -rw-r--r--    1 unbound          unbound                 0 Jun 17 09:38 /opt/local/var/run/unbound/unbound.pid<br class=""><br class=""></div><div class="">but I have sometimes seen MacPorts set some of the groups on some of its files oddly (but using a group-id it created for one port or another).  I haven't seen that recently, and don't remember the port or the details, so I can't say what the cause is or how to get it fixed.  I don't recall it messing those up for files outside /opt/local, so I wouldn't worry _too_ much, although IMO it's not right.</div><div class=""><br class=""></div><div class="">If you're curious about users or groups created, you can list them with</div><div class=""><br class=""></div><div class="">dscl . -list /Users</div><div class="">or</div><div class="">dscl . -list /Groups</div><div class=""><br class=""></div><div class="">and get specifics with</div><div class="">dscl . -read /Users/unbound</div><div class="">or</div><div class="">dscl . -read /Groups/unbound</div><div class=""><br class=""></div><div class="">etc.  Or use the GUI: System Preferences -> Users&Groups; unlock, click Login Options, click Join, click Open Directory Utility..., click Directory Editor.  Select Users or Groups, find the one you're interested in on the list, click on it, etc.  Just be careful and don't change anything by accident.  If it shows a lock symbol and "Not Authenticated", it probably won't let you anyway until you do that.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 10, 2019, at 10:12, Gerben Wierda <<a href="mailto:gerben.wierda@rna.nl" class="">gerben.wierda@rna.nl</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">I am building a new Mac Mii Server, replacement for one running High Sierra with Server.app that still includes Mail & Web. I want the new server still to run Server.app for DNS, device management, profile management, Open Directory (required for some other stuff) so I will be adding MacPorts mail & web (could be difficult as there already is an Apache server for profile manager and device manager) to a macOS Mojave Server.</div><div class=""><br class=""></div><div class="">A stretch objective is to connect postfix and dovecot to OpenDirectory for authentication.</div><div class=""><br class=""></div><div class="">At this point the system is almost pristine (clean OS install, Xcode install, Server.app install and basic config) and MacPorts has been installed and the first port has been installed.</div><div class=""><br class=""></div><div class="">Anyway, I am documenting everything I have to do and I have run into a situation where I am now stumped and the documentation for searching on the system in /opt does help me out.</div><div class=""><br class=""></div><div class="">Here is my log snippet:</div><div class=""><ul class="">
<li style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Installed unbound using MacPorts</li>
<div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">sudo port install unbound</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">which ends with:</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  unbound has the following notes:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    An example configuration is provided at /opt/local/etc/unbound/unbound.conf-dist.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    A startup item has been generated that will aid in starting unbound with launchd. It is disabled by default. Execute the following command to start</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    it, and to cause it to launch at startup:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    </span><br class="webkit-block-placeholder"></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">        sudo port load unbound</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 14px;" class=""><br class=""></div>
<ul class="">
<li style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(251, 2, 255);" class=""><span style="" class="">Had some trouble locating unbound documentation to see how I can setup my local zone. Is part of the main configuration. </span>Stumped! Where is the start-up item for unbound so I can check before installing it via <i class="">port load unbound</i>? Question: Why is so much owned in /opt owned by group unbound?</li>
</ul><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">./sources/<a href="http://rsync.macports.org/macports/release/tarballs:" class="">rsync.macports.org/macports/release/tarballs:</a></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">total 327312</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--   1 root  wheel    12680818 Aug 10 07:36 PortIndex</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--   1 root  wheel         512 Aug 10 07:48 PortIndex.rmd160</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x  29 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">       928 Oct  3  2018 base</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--   1 root  wheel    85608960 Oct  3  2018 base.tar</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--   1 root  wheel         512 Oct  3  2018 base.tar.rmd160</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x  62 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">      1984 Aug 10 11:20 ports</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--   1 root  wheel    69277184 Aug 10 07:48 ports.tar</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--   1 root  wheel         512 Aug 10 07:48 ports.tar.rmd160</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">./sources/<a href="http://rsync.macports.org/macports/release/tarballs/base:" class="">rsync.macports.org/macports/release/tarballs/base:</a></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">total 1352</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">  111011 Oct  3  2018 ChangeLog</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">   99338 Aug 22  2017 Doxyfile.in</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">    3281 May  6  2018 HACKING</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">    1556 May  6  2018 LICENSE</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">    7079 May 28  2018 Makefile.in</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x    5 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">     160 Jul  5  2018 Mk</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rw-r--r--    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">   36452 Jul  5  2018 aclocal.m4</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-rwxr-xr-x    1 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">      44 May 28  2018 autogen.sh</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">drwxr-xr-x    7 root  </span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class="">unbound</span><span style="font-variant-ligatures: no-common-ligatures" class="">     224 Oct  3  2018 config</span></div></ul></div><div class=""><br class="webkit-block-placeholder"></div><div class="">I’m stumped and I don’t understand that group ownership. Can anybody explain?</div><div class=""><br class="webkit-block-placeholder"></div><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Gerben Wierda</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://enterprisechess.com/" class="">Chess and the Art of Enterprise Architecture</a></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://masteringarchimate.com/" class="">Mastering ArchiMate</a></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://www.infoworld.com/blog/architecture-for-real-enterprises/" class="">Architecture for Real Enterprises</a> at InfoWorld</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://eapj.org/on-slippery-ice/" class="">On Slippery Ice</a> at EAPJ</div></div>
</div>

<br class=""></div></div></blockquote></div><br class=""></div></body></html>