Skip to content

Instantly share code, notes, and snippets.

View smco-lee's full-sized avatar

Lee Jones smco-lee

View GitHub Profile
smco-lee /
Last active November 27, 2023 15:20
Adds a daemon only user in OS X (taken from
if (( $(id -u) )) ; then
echo "This script needs to run as root"
exit 1
if [[ -z "$1" ]] ; then
echo "Usage: $(basename $0) [username] [realname (optional)]"
exit 1