summaryrefslogtreecommitdiff
path: root/user
blob: 031ac295f617f0ef97e34ecd088f5b7ebd453afd (plain)
  1. #!/bin/sh
  2. ACTION=$1
  3. USERNAME=$2
  4. [ x"$USERNAME" = "x" ] && ACTION=''
  5. case $ACTION in
  6. add)
  7. /usr/sbin/adduser "$USERNAME"
  8. ;;
  9. remove|del|delete)
  10. /usr/sbin/userdel -r "$USERNAME"
  11. ;;
  12. *)
  13. echo "$0 add|remove <username>"
  14. ;;
  15. esac