#!/bin/sh # if you are working with a directory services path other than the # local machine, put the correct path here. DSPATH="." # if you need different numeric UID/GID values, set them here NGID="151" # for group djbdns RUID="151" # for user dnsrun LUID="152" # for user dnslog dscl "$DSPATH" create /Groups/djbdns PrimaryGroupID $NGID dscl "$DSPATH" create /Users/dnsrun UniqueID $RUID dscl "$DSPATH" create /Users/dnsrun PrimaryGroupID $NGID dscl "$DSPATH" create /Users/dnsrun UserShell /bin/false dscl "$DSPATH" create /Users/dnsrun NFSHomeDirectory /nohome dscl "$DSPATH" create /Users/dnsrun RealName dnsrun dscl "$DSPATH" create /Users/dnslog UniqueID $LUID dscl "$DSPATH" create /Users/dnslog PrimaryGroupID $NGID dscl "$DSPATH" create /Users/dnslog UserShell /bin/false dscl "$DSPATH" create /Users/dnslog NFSHomeDirectory /nohome dscl "$DSPATH" create /Users/dnslog RealName dnslog dscl "$DSPATH" create /Groups/djbdns GroupMembership dnsrun dnslog