Created
January 2, 2015 22:03
-
-
Save jasperla/e1a2f8e41eb2a5d7cbce to your computer and use it in GitHub Desktop.
Creating _ntp user for OpenNTPD portable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment