X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsudoers.d%2Fpasswd-init;fp=etc%2Fsudoers.d%2Fpasswd-init;h=6be02f37bbdc9185c3630e0f254c954778af3ee0;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hp=0000000000000000000000000000000000000000;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;p=lhc%2Fateliers.git diff --git a/etc/sudoers.d/passwd-init b/etc/sudoers.d/passwd-init new file mode 100644 index 0000000..6be02f3 --- /dev/null +++ b/etc/sudoers.d/passwd-init @@ -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