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