Concept Flow - passwd (change password)
User runs 'passwd'
Prompt: Enter current password
User inputs current password
Prompt: Enter new password
User inputs new password
Prompt: Confirm new password
User confirms new password
System checks passwords match
Password [Error: Passwords do not match
Restart new password prompt
Success message
Exit
The passwd command asks for the current password, then the new password twice, checks if they match, and changes the password if all is correct.