<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=LinuxSecuiry</id>
	<title>LinuxSecuiry - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=LinuxSecuiry"/>
	<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=LinuxSecuiry&amp;action=history"/>
	<updated>2026-05-16T18:23:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://www.weweweb.net/wiki/index.php?title=LinuxSecuiry&amp;diff=85&amp;oldid=prev</id>
		<title>Willy: Created page with &quot;==Linux Upgrade Password Hashing Algorithm to SHA-512==  The default algorithm for storing password hashes in /etc/shadow is MD5. I was told to use SHA-512 hashing algorithm....&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=LinuxSecuiry&amp;diff=85&amp;oldid=prev"/>
		<updated>2022-01-27T04:01:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Linux Upgrade Password Hashing Algorithm to SHA-512==  The default algorithm for storing password hashes in /etc/shadow is MD5. I was told to use SHA-512 hashing algorithm....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Linux Upgrade Password Hashing Algorithm to SHA-512==&lt;br /&gt;
&lt;br /&gt;
The default algorithm for storing password hashes in /etc/shadow is MD5. I was told to use SHA-512 hashing algorithm. How do I set password hashing using the SHA-256 and SHA-512 under CentOS or Redhat Enterprise Linux 5.4?&lt;br /&gt;
&lt;br /&gt;
You need to use authconfig command to setup SHA-256/512 hashing. This command provides a simple method of configuring /etc/sysconfig/network to handle NIS, as well as /etc/passwd and /etc/shadow, the files used for shadow password support. Basic LDAP, Kerberos 5, and SMB (authentication) client configuration is also provided.&lt;br /&gt;
&lt;br /&gt;
'''Display Current Hashing Algorithm'''&lt;br /&gt;
&lt;br /&gt;
Type the following command:&lt;br /&gt;
  # authconfig --test | grep hashing&lt;br /&gt;
&lt;br /&gt;
Sample outputs:&lt;br /&gt;
  password hashing algorithm is md5&lt;br /&gt;
&lt;br /&gt;
'''Configure Linux Server To Use The SHA-512'''&lt;br /&gt;
&lt;br /&gt;
To configure the Linux system to use the SHA-512 algorithm, enter:&lt;br /&gt;
  # authconfig --passalgo=sha512 --update&lt;br /&gt;
Note users need to change their passwords in order to generate hashes using SHA-512. You can force users to change their password on next login:&lt;br /&gt;
  # chage -d 0 userName&lt;br /&gt;
----&lt;br /&gt;
Goto [[Linux]]&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
</feed>