summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-02-28 14:09:04 +0000
committerJonas Smedegaard <dr@jones.dk>2002-02-28 14:09:04 +0000
commitcafcd5d4368e57f162a641ed3f4835ecb5a6d391 (patch)
tree56166fbf16289d8b388cf0f1f9b51e28c3c4bdf9 /user
Initial revision
Diffstat (limited to 'user')
-rwxr-xr-xuser18
1 files changed, 18 insertions, 0 deletions
diff --git a/user b/user
new file mode 100755
index 0000000..031ac29
--- /dev/null
+++ b/user
@@ -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