Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / local / passwd-init
diff --git a/local/passwd-init b/local/passwd-init
new file mode 100755 (executable)
index 0000000..28d5d1c
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -efu
+# DESCRIPTION: permet à un-e utilisateurice d'initialiser ellui-même son mot-de-passe système.
+sudo /bin/sh -e -f -u -c \
+ 'case $(/usr/bin/passwd --status "$SUDO_USER") in ("$SUDO_USER L "*) /usr/bin/passwd $SUDO_USER;; esac'