Skip to content

Instantly share code, notes, and snippets.


Brent Cook busterb

  • Rapid7
  • Pflugerville, TX
View GitHub Profile
jasperla / gist:e1a2f8e41eb2a5d7cbce
Created Jan 2, 2015
Creating _ntp user for OpenNTPD portable
View gist:e1a2f8e41eb2a5d7cbce
dscl . create /Users/_ntp
dscl . create /Users/_ntp UserShell /sbin/nologin
# Prevent user from showing up on the login screen
dscl . delete /Users/_ntp AuthenticationAuthority
# Arbitrarily chosen UID that was free
dscl . create /Users/_ntp UniqueID 400
dscl . create /Users/_ntp PrimaryGroupID 400
dscl . create /Users/_ntp RealName "OpenNTPD user"
dseditgroup -o create _ntp
dscl . append /Groups/_ntp GroupMembership _ntp