macOS / binaries /

passwd

/usr/bin/passwd
Modify a user's password

The passwd utility changes the user's password. If the user is not the super-user, passwd first prompts for the current password and will not continue unless the correct password is entered.

source: man