Hashing password algorithm

How To Change Default Password Hashing Algorithm  

How To Change Default, passalgo a parameter in Linux that used to modified the default password hashing algorithm.

By default, Hashing value MD5. This hashing algorithm used to encrypt the user password in /etc/passwd & /etc/shadow file.

Check Out : RPM useful Commands List

You can change inspect the available algorithm choices by

authconfig -–help | grep passalgo

You can check the default hashing algorithm by

authconfig -–test | grep hashing

Change default password

Now Change the Hashing algorithm by

authconfig -–passalgo=sha512 –update

Check Out : Error “ Failed to load SElinux Policy freezing

Now Check algorithm changed  

authconfig -–test | grep hashing

Now algorithm changed to SHA512.

Note: This will no effect on password already stored in /etc/passwd & /etc/shadow only future password will be hashed with new algorithm.

That’s it

Leave a Reply

Notify of