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