blob: 031ac295f617f0ef97e34ecd088f5b7ebd453afd (
plain)
- #!/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
|