CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  Shadow passwords - Changing encryption method from MD5 to SHA

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  Phaethar
      Phaethar
Shadow passwords - Changing encryption method from MD5 to SHA
#1
Newbie
Joined: 2007/5/11
From
Posts: 6
Hey all,

I'm looking to find out exactly how to go about changing the encryption method of shadow passwords from MD5 to something a bit stronger, like SHA. I've been looking around for a bit now and haven't found out how to do it.

I've gathered that I'll most likely need to change the /etc/pam.d/system-auth file. Right now, there is a line that looks like this:

password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok

I'm guessing the md5 should be changed to something else, like sha256.

What else? I know I'll need to reset all passwords once the change is made, but I thought there was someplace else that controls how the passwd command encrypts passwords.

Any suggestions please?

Thanks!
Posted on: 2009/11/4 16:40
Create PDF from Post Print
Top
  •  milosb
      milosb
Re: Shadow passwords - Changing encryption method from MD5 to SHA
#2
Jr Board Member
Joined: 2009/1/18
From Planet Earth
Posts: 35
Hi,

what you're looking for is 'system-config-authentication' -> Options tab -> Password hashing algorithm option

This utility affects the /etc/login.defs file, so, I believe, you can also achieve this by directly editing the file. But personally, I'd stick to the 'system-config-authentication' utility.


Regards,
_________________
RHCT
605008720421478
Posted on: 2009/11/7 2:10
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com