Rate this page del.icio.us  Digg slashdot StumbleUpon

Tips and tricks: Choosing the password hashing algorithm for /etc/shadow during installation

by Alexander Todorov

This is a new feature that has been requested in the Red Hat Enterprise Linux product line. The supported algorithms are DES, MD5, and SHA-256/512. They will be available after the upcoming updates releases as well as in Rawhide. The new algorithms will be configurable via Kickstart only. Here is the correct code.

DES

authconfig --enableshadow --passalgo=descrypt
rootpw fedora

MD5

authconfig --enableshadow --enablemd5
rootpw fedora

or

authconfig --enableshadow --passalgo=md5
rootpw fedora

SHA-256

authconfig --enableshadow --passalgo=sha256
rootpw fedora

SHA-512

authconfig --enableshadow --passalgo=sha512
rootpw fedora

If you provide an encrypted root password in the above examples it will not be encrypted again.

The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.

Leave a reply