diff options
Diffstat (limited to 'user')
-rwxr-xr-x | user | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/bin/sh + +ACTION=$1 +USERNAME=$2 + +[ x"$USERNAME" = "x" ] && ACTION='' + +case $ACTION in + add) + /usr/sbin/adduser "$USERNAME" + ;; + remove|del|delete) + /usr/sbin/userdel -r "$USERNAME" + ;; + *) + echo "$0 add|remove <username>" + ;; +esac |