summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocaladduser13
-rwxr-xr-xlocaldeluser14
-rwxr-xr-xlocalpasswd14
3 files changed, 41 insertions, 0 deletions
diff --git a/localadduser b/localadduser
new file mode 100755
index 0000000..bf93954
--- /dev/null
+++ b/localadduser
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# /usr/local/bin/localadduser
+# Copyright 2003 Jonas Smedegaard <dr@jones.dk>
+#
+# $Id: localadduser,v 1.1 2003-12-17 14:53:28 jonas Exp $
+#
+# Execute adduser through sudo
+#
+# TODO: Check for bad arguments
+#
+
+exec sudo /usr/sbin/adduser $1
diff --git a/localdeluser b/localdeluser
new file mode 100755
index 0000000..e6b6b6f
--- /dev/null
+++ b/localdeluser
@@ -0,0 +1,14 @@
+#!/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
+#
+
+exec sudo /usr/sbin/adduser $1
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