samba family passwords never expire

This commit is contained in:
chrisfu 2026-01-30 00:03:29 -08:00
parent ac95cdba00
commit a9c1c18891

View File

@ -96,6 +96,10 @@ for user in "${USERS[@]}"; do
# membership first
"${SUDO[@]}" samba-tool group addmembers "${GROUP}" "${user}" >/dev/null 2>&1 || true
# ensure password never expires
"${SUDO[@]}" samba-tool user setexpiry "${user}" --noexpiry >/dev/null
"${SUDO[@]}" samba-tool user setpassword "${user}" --must-change-at-next-login=no
# now set the final (possibly weak) password under the PSO
echo " set final password for ${user}"
"${SUDO[@]}" samba-tool user setpassword "${user}"