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
sudo dscl . create "/Groups/org.example.webapp.appname" | |
# find a free group id and use it. (something in the 300 range will hide it from normal user management) | |
sudo dscl . create "/Groups/org.example.webapp.appname" PrimaryGroupID 303 | |
sudo dscl . create "/Groups/org.example.webapp.appname" RealName org.example.webapp.appname | |
sudo dscl . create "/Users/org.example.webapp.appname" | |
# find a free userid | |
sudo dscl . create "/Users/org.example.webapp.appname" UniqueID 303 | |
# use the groupid of the group you just created | |
sudo dscl . create "/Users/org.example.webapp.appname" PrimaryGroupID 303 |