Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / etc / sudoers.d / passwd-init
diff --git a/etc/sudoers.d/passwd-init b/etc/sudoers.d/passwd-init
new file mode 100644 (file)
index 0000000..6be02f3
--- /dev/null
@@ -0,0 +1,3 @@
+%sudo ALL=(ALL) NOPASSWD: /bin/sh -e -f -u -c \
+  case $(/usr/bin/passwd --status "$SUDO_USER") in \
+    ("$SUDO_USER L "*) /usr/bin/passwd $SUDO_USER;; esac