Old Red Hat and new Red Hat / Debian use a different system to create the encrypted passwords if I recall correctly.
So you cannot simply copy the users line in shadow over, it wont work, hence the need to de-crypt and re-crypt (I assume). regards Thing -----Original Message----- From: Miquel van Smoorenburg [mailto:[EMAIL PROTECTED] Sent: Monday, 25 October 2004 11:36 p.m. To: [EMAIL PROTECTED] Subject: Re: Where is the key for the password files stored? In article <[EMAIL PROTECTED]>, Micha Feigin <[EMAIL PROTECTED]> wrote: >Where is the key used to decrypt the passwords (shadow) files stored? >I want to reinstall an old redhat system with debian, but I wish to >preserve old users and passwords to ease the transition process. You can't decrypt passwords - because they are not crypted at all. The algorithm is just a one-way hash. When you login, the password you enter is simply encrypted (one-way- hashed, really) again and compared with the one in the shadow file. The password in the shadow file is never decrypted as such. Why not simply copy the relevant parts of the password and shadow files over, why do you want to decrypt first ? Mike. -- "In times of universal deceit, telling the truth becomes a revolutionary act." -- George Orwell. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]