A little simplification would be to run pwunconv on the old machine (this would get you a nice "old style" /etc/passwd :), copy the passwd file to the new machine and thean run pwconv on the new machine. So you will get back the shadow file (now probably encrypted with MD5, see jlevie's comment).
I think you're fussing about nothing ;)
Main Topics
Browse All Topics





by: jleviePosted on 2002-10-01 at 20:37:32ID: 7311459
Your 6.2 box might have been using DES encryption for the passwords, in which case the first two characters of each password will be random characters (MD5 encrypted passwords start with $1$). But it doesn't matter which form of encryption was used. Simply create the entries in the 7.3 shadow file from the data on the 6.2 box. I always match up the accounts line for line with what is in the password file as I've had problems on occasion when that's not the case. RedHat is quite happy to use either or both forms of encryption within a shadow file. It can tell which is which and acts accordingly.
The default in modern Linux systems is to use MD5. Unless you've changed that any new accounts created on the 7.3 box or any passwords that are changed will be encrypted with MD5.