mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
samba family passwords never expire
This commit is contained in:
parent
ac95cdba00
commit
a9c1c18891
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user