Password encryption - migration user accounts from SuSe to RedHat


 
Thread Tools Search this Thread
Special Forums Cybersecurity Password encryption - migration user accounts from SuSe to RedHat
# 1  
Old 06-07-2013
Password encryption - migration user accounts from SuSe to RedHat

Hello guys,
I'm currently working on replacing old server and it's migration from SuSe

Code:
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 4

to the RedHat
Code:
Red Hat Enterprise Linux Server release 6.4 (Santiago)

Problem seems be in migration of users passwords, respectively in password encryption.

On SuSe is used des encryption
Code:
cat /etc/default/passwd | grep CRYPT
CRYPT=des

but in /etc/shadow I see:
Code:
user1:$1$gDXlJQcH$1Z5otL/07nPZJtF8VVaGY0:15552:1:93:7:::
user2:$2a$04$Osw2KnOXMJjDvYuvtoJAked1cnjXBF3RRpJhqmi21.C1nQrQ89jNi:15580::::::

So it looks that some from passwords are encrypted with MD5, and some of them with Blowfish. Is my suggestion right??

While RedHat is using SHA512
Code:
cat /etc/login.defs | grep CRYP
ENCRYPT_METHOD SHA512
MD5_CRYPT_ENAB no

I would like ask if is possible to convert current passwords from MD5 and Blowfish to the SHA512 and use them directly on new RedHat server??


Many thanks for hints.

Last edited by brusell; 06-07-2013 at 09:24 AM.. Reason: More info added
# 2  
Old 06-07-2013
You can't convert. Just wipe out the password and reset them on the Red Hat side. You can also pre-generate the SHA512 hash if you want and fill that in (e.g. you might do this for root). Alternatively you could try to match up auth hash support, but since there were some bugs notably in blowfish... that might be harder than it sounds.
This User Gave Thanks to cjcox For This Post:
# 3  
Old 06-07-2013
Agreed, you can't convert. The entire point of keeping passwords in hashes is because you cannot reverse them. You can only compare a hash to another hash.
This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Vormetric Data Encryption on Solaris Redhat

Does anyone have experience running the Vormetric Data Encryption on Oracle Solaris platform? (0 Replies)
Discussion started by: dwevans
0 Replies

2. Red Hat

Redhat 4 host based migration

Hi, I need to migrate using Redhat 4 as host based migration,EMC Clariion to VNX. Please what are the best ways to perform online migration,with users working on the box?The file system is ext3 and the source logical voulumes are raid 1. - adding the 3rd LUN(from VNX) to the... (0 Replies)
Discussion started by: tanislavm11
0 Replies

3. Red Hat

password change for user on Redhat 5.6

Hi expert, after creating users on Redhat, i wantn to change their password with something that easy to remember and the way we use. For example #passwd username hello$123 it don't allow me. It may has something to do /etc/pam.d/filesXXXX there which i don't know to change to allow root... (1 Reply)
Discussion started by: lamoul
1 Replies

4. UNIX for Dummies Questions & Answers

Migration to Redhat

Hi, We are currently using solaris 9 on sunfire v240 and strongly considering to migrate to redhat enterprise. But we are not sure if we can install redhat enterprise on sunfire WS . Although, we will purchase a X64 machine we also want to use sunfire machine. can we install redhat on sunfire... (2 Replies)
Discussion started by: titanic
2 Replies

5. UNIX for Dummies Questions & Answers

Password encryption

In unix, i know the password encrypt by using salt But how does it work? And how windows protect its password? Thank you for helping in advance (5 Replies)
Discussion started by: cryogen
5 Replies

6. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

7. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

8. HP-UX

HP-UX to Redhat Linux Migration

Hi, We are planning to do migration from HP-UX to Redhat linux. We have 1300 makefiels. Is there any difference between HP-UX make and GNU make? Is there any tutorial on that? Regards hari_anj (0 Replies)
Discussion started by: hari_anj
0 Replies

9. Programming

User name and password encryption

Hi, I have usernames and passwords (to connect oracle DB) buried in so many shell scripts. We want to externalize all usernames and passwords from those shell scripts and encrypt them and keep them in a file. So far I found two choices, 1) Use some encryption algorithms like (RC5/MD5) to... (5 Replies)
Discussion started by: satguyz
5 Replies
Login or Register to Ask a Question