diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-02-28 14:09:04 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-02-28 14:09:04 +0000 |
commit | cafcd5d4368e57f162a641ed3f4835ecb5a6d391 (patch) | |
tree | 56166fbf16289d8b388cf0f1f9b51e28c3c4bdf9 /user |
Initial revision
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 |