To change a password in Linux through a Bash script, he two scripts that are most important are 'Create Users' and 'Change Passwords Shell' scripts, for the system admin which regularly uses the mail ...
Sudo lets you run any terminal command as another user — hence "substitute user" — but the default and most common use for it ...