summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-11-02 11:18:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-11-02 11:18:05 +0100
commitb35696d557345db1664db7c6eda04631484769f4 (patch)
tree3e729237b65aecbf4a36e7c127dcd384e7bf6e3c /bin
parent2153ce360cbf1343dfc5f0461d25aa6bfb2a8b6c (diff)
downloaditzks-systems-b35696d557345db1664db7c6eda04631484769f4.tar.gz
itzks-systems-b35696d557345db1664db7c6eda04631484769f4.tar.bz2
itzks-systems-b35696d557345db1664db7c6eda04631484769f4.zip
/bin/passwd: To users with uidNumber >= 1000 -> show the GOsa² link. To users with uidNumber < 1000 -> wrap around GNU passwd binary.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/passwd11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/passwd b/bin/passwd
index 60ac87f..f18fc3d 100755
--- a/bin/passwd
+++ b/bin/passwd
@@ -1,4 +1,9 @@
-#!/bin/sh
+#!/bin/bash
-echo "Please visit https://www/gosa to set your network password for Debian Edu / Skolelinux. THANKS!"
-exit 0 \ No newline at end of file
+if [ `id -u` -ge 1000 ]; then
+ echo "Please visit https://www/gosa to set your network password for Debian Edu / Skolelinux. THANKS!"
+else
+ passwd.gnu $@
+fi
+
+exit 0