AD.sh/ResetPwdTo.sh

4 lines
116 B
Bash

#!/bin/bash
password=***********
samba-tool user setpassword $1 --must-change-at-next-login --newpassword=$password