Skip to content

Instantly share code, notes, and snippets.

@bikram990
bikram990 / createUser.sh
Created July 26, 2017 04:12
Create a daemon user in macOS
#!/bin/bash
if (( $(id -u) )) ; then
echo "This script needs to run as root"
exit 1
fi
if [[ -z "$1" ]] ; then
echo "Usage: $(basename $0) [username] [realname (optional)]"
exit 1