You don't need to reinstall your whole operating system just because you forgot your Linux login. It's actually pretty easy ...
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 ...