macOS / binaries /

unsetpassword

/usr/sbin/unsetpassword
Reset user password

unsetpassword sets the password to blank, and marks the record as requiring a new password for the current user's record, and then shuts down the system.