Skip to content

Instantly share code, notes, and snippets.

Avatar

Lee Jones smco-lee

View GitHub Profile
@smco-lee
smco-lee / add_daemon_user.sh
Last active Jan 1, 2016
Adds a daemon only user in OS X (taken from http://serverfault.com/a/532860/329010)
View add_daemon_user.sh
#!/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
You can’t perform that action at this time.