Here are the steps to create an MD5 hash password
To use in linux shadow file or when you want to update the password somewhere
You will need “mkpasswd”
If your server seem to be missing the mkpasswd command, install it using yum.
yum install expect
Create the password and update for the user in /etc/shadow file.
mkpasswd -l 8 -d 3 -C 1 -s 1 maugustine
l – minimum length of password
d – minimum number of digits in password
C – number of uppercase characters
s – special characters.
The user you specify in mkpasswd should exist on the system