Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 08-23-2005, 12:39 AM   #1
Registered: Jul 2004
Posts: 30

Rep: Reputation: 15
Change Password Hash Algorithm

I am running Slackware 10.1 on a server.

Is there a way that I can change the algorithm used to hash user passwords? By default it is MD5, and I would like to make it more secure by changing it to SHA-1 or SHA-256.

Is there a way to do this, and if so how is it done?

Thank you for any help.
Old 08-23-2005, 07:48 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You could change it, but be aware that many scripts/programmes only know how MD5 or crypt algorithms, so you may have to change them as well.

If everything uses pam for password access, change the specific pam module to another algorithm.
By default pam uses /etc/pam.d/login which uses /etc/pam.d/system-auth
The algorithm can be selected in the system-auth file..

Good Luck!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 09:39 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM
enabling blowfish password hash on RedHat linux appadesai Linux - General 0 04-05-2003 07:20 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration