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

Notices


Reply
  Search this Thread
Old 09-22-2013, 11:39 PM   #1
duachuot30_4
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
Smile Encryption typed


Hi,My name is Quy I'm the New member of Forum,
I have one problem but I can't Google to find the answer.
I have to config PAM for password is encrypted in SHA512. But some version before Redhat 5.2 not support SHA512,
Now, i have the question: how to list all supported encryption type in specified linux distro (SuSE, Redhat, Centos) and Solaris?
Hope someone can answer this question. thanks!


p/s: my server cant upgrade to new version
 
Old 09-24-2013, 08:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by duachuot30_4 View Post
Hi,My name is Quy I'm the New member of Forum,
Welcome to LQ, hope you like it here.


Quote:
Originally Posted by duachuot30_4 View Post
Redhat 5.2
If with "Redhat 5.2" you meant "Red Hat Linux 5.2" then you should ditch that immediately as it's been EOL'ed for too long.
If with "Redhat 5.2" you meant "Red Hat Enterprise Linux 5.2" then you should upgrade to RHEL 5.9 (or CentOS 5.9) as that's the latest release of the 5 series.


Quote:
Originally Posted by duachuot30_4 View Post
how to list all supported encryption type in specified linux distro (SuSE, Redhat, Centos) and Solaris?
For any OS or distribution that uses PAM start with /usr/share/doc/pam-*/txts/README.pam_unix as this references the crypt function. Now see 'man 3 crypt' and notice the Glibc versions which support additional encryption algorithms:
Code:
 ID  | Method
 ─────────────────────────────────────────────────────────

 1   | MD5
 2a  | Blowfish (not in mainline glibc; added in some
     | Linux distributions)
 5   | SHA-256 (since glibc 2.7)
 6   | SHA-512 (since glibc 2.7)
So by knowing the used glibc version (like 'rpm -q glibc --qf="%{version}\n"') you know what's supported.


Quote:
Originally Posted by duachuot30_4 View Post
p/s: my server cant upgrade to new version
List its hardware specifications and we'll probably tell you that you can :-]
 
1 members found this post helpful.
Old 09-24-2013, 09:03 PM   #3
duachuot30_4
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks for Reply.
Your answer is very great

I have some question:
You show: SHA-512 only supported since glibc version 2.7
Quote:
ID | Method
─────────────────────────────────────────────────────────

1 | MD5
2a | Blowfish (not in mainline glibc; added in some
| Linux distributions)
5 | SHA-256 (since glibc 2.7)
6 | SHA-512 (since glibc 2.7)
But my glibc version is 2.5. And It still supports SHA-512?
this is output of cat /etc/*release command:
Code:
[duachuot30_4@server2 ~]$ cat /etc/*release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Quote:
Quote:
Originally Posted by duachuot30_4 View Post
p/s: my server cant upgrade to new version
List its hardware specifications and we'll probably tell you that you can :-]
Sorry, my boss does not allow our to upgrade Kernel. It will implement in different plan.

Thanks
 
Old 09-24-2013, 09:17 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by duachuot30_4 View Post
But my glibc version is 2.5. And It still supports SHA-512?
So it seems:

Code:
2007-09-19  Ulrich Drepper  <drepper@redhat.com>

	* crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
	sha512-crypt, and sha512.
	(tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
	(distribute): Add sha256.h and sha512.h.
	* crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
	and call the appropriate code.
	* crypt/sha256-crypt.c: New file.
	* crypt/sha256.c: New file.
	* crypt/sha256.h: New file.
	* crypt/sha256c-test.c: New file.
	* crypt/sha256test.c: New file.
	* crypt/sha512-crypt.c: New file.
	* crypt/sha512.c: New file.
	* crypt/sha512.h: New file.
	* crypt/sha512c-test.c: New file.
	* crypt/sha512test.c: New file.

--- libc/crypt/Makefile	5 Oct 2005 19:33:35 -0000	1.10
+++ libc/crypt/Makefile	19 Sep 2007 20:37:33 -0000	1.11
Beats me why the manual page is wrong...
 
1 members found this post helpful.
Old 09-24-2013, 09:34 PM   #5
duachuot30_4
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you very much.
 
  


Reply



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
Display what is Typed after script lainey Linux - Newbie 1 11-14-2011 08:42 PM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 06:46 AM
how to see typed commands with date? vaoc Linux - Security 1 08-06-2004 01:43 PM
start vim when vi is typed PlatinumRik Linux - Software 7 03-15-2004 04:24 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:05 PM.

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