summaryrefslogtreecommitdiff
path: root/localpasswd
diff options
context:
space:
mode:
Diffstat (limited to 'localpasswd')
-rwxr-xr-xlocalpasswd14
1 files changed, 14 insertions, 0 deletions
diff --git a/localpasswd b/localpasswd
new file mode 100755
index 0000000..c216bf7
--- /dev/null
+++ b/localpasswd
@@ -0,0 +1,14 @@
+#!/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
+#
+
+exec sudo /usr/bin/passwd $1