summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
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