Improve scripts

This commit is contained in:
2024-06-30 20:12:36 -04:00
parent 877c65e2c1
commit c67d1f0c47

View File

@@ -36,5 +36,9 @@ if ask_ok "Change user $user's password to $password?"; then
echo "$user":"$password" | chpasswd
(echo "$password"; echo "$password") | smbpasswd -a -s "$user"
fi
ask_ok "Prompt user to reset password on next login?" &&
passwd --expire "$user" &&
echo "NOTE: The file sharing (smbpasswd) will not be changed"
exit 0