Darwin

Create a new group
dseditgroup -o create ssh-users
Add a user to a group
dseditgroup -o edit -a steve -t user wheel
Set hostname
scutil --set HostName foo.beandog.org