blob: 640d87ba78ca1a7abd486f296ef07dccb3bcbe85 (
plain)
- #!/bin/sh
- #
- # /usr/local/bin/localdeluser
- # Copyright 2003 Jonas Smedegaard <dr@jones.dk>
- #
- # $Id: localdeluser,v 1.1 2003-12-17 14:53:28 jonas Exp $
- #
- # Execute deluser through sudo
- #
- # TODO: Check for bad arguments
- # TODO: Only allow deleting regular users
- #
- sudo=sudo
- [ "$(id -u)" -ne 0 ] || sudo=
- exec $sudo /usr/sbin/adduser $1
|