[MacPorts] #61626: Bad user for unbound

MacPorts noreply at macports.org
Mon Nov 23 07:34:38 UTC 2020


#61626: Bad user for unbound
---------------------+----------------------
 Reporter:  ArtKoKo  |      Owner:  nerdling
     Type:  defect   |     Status:  assigned
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.6.4
 Keywords:           |       Port:  unbound
---------------------+----------------------
 The user for unbound is ... unbound instead of _unbound with an ID less
 than 500.

 So there is confusion with a standard Mac OS X user

 I fix it with :

 {{{
 sudo dscl . -change /Users/unbound RecordName unbound _unbound && sudo
 dscl . -change /Groups/unbound RecordName unbound _unbound
 sudo dscl . -change /Users/_unbound UniqueID 503 105 && sudo dscl .
 -change /Groups/_unbound PrimaryGroupID 502 105
 sudo dscl . -delete /Users/unbound
 }}}

 I change the wrapper in line 16 :

 {{{
         (/opt/local/sbin/unbound-anchor -a /opt/local/etc/unbound/root.key
 2>&1) || : && (chown unbound:unbound /opt/local/etc/unbound/root.key 2>&1)
 && (/opt/local/sbin/unbound 2>&1)
 }}}

 with :

 {{{
         (/opt/local/sbin/unbound-anchor -a /opt/local/etc/unbound/root.key
 2>&1) || : && (chown _unbound:_unbound /opt/local/etc/unbound/root.key
 2>&1) && (/opt/local/sbin/unbound 2>&1)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61626>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list