Skip to content

Instantly share code, notes, and snippets.

@Sydney-o9
Created February 1, 2018 23:59
Show Gist options
  • Save Sydney-o9/a3dae5b049d182c75436d983b7fc68c5 to your computer and use it in GitHub Desktop.
Save Sydney-o9/a3dae5b049d182c75436d983b7fc68c5 to your computer and use it in GitHub Desktop.
# Create group _selenium with gid 703
sudo dscl . -create /Groups/_selenium
sudo dscl . -create /Groups/_selenium PrimaryGroupID 703
# Make sure it now exists
dscacheutil -q group | grep gid | awk ‘{print $2}’ | sort -n | tail -n 1
# Create the deamon user _selenium
sudo dscl . -create /Users/_selenium UniqueID 703
sudo dscl . -create /Users/_selenium PrimaryGroupID 703
sudo dscl . -create /Users/_selenium UserShell /usr/bin/false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment