I have an old mail-server running RH 7.2. I have built a new mail-server running RH 9. I need to migrate my user's accounts and passwords over to this new machine.
I am not certain what encryption mechanism my 7.2 server was using as my system-auth file found in /etc/pam.d/ dir looks like this:
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_unix.so likeauth nullok
auth required /lib/security/pam_deny.so
account required /lib/security/pam_unix.so
password required /lib/security/pam_cracklib.so retry=3 type=
password sufficient /lib/security/pam_unix.so nullok use_authtok shadow nis
password required /lib/security/pam_deny.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so
The one from my 9 server looks like so:
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth required /lib/security/$ISA/pam_deny.so
account required /lib/security/$ISA/pam_unix.so
password required /lib/security/$ISA/pam_cracklib.so retry=3 type=
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password required /lib/security/$ISA/pam_deny.so
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
My assumption is that both machines are making use of md5 sums with respect to their shadow files. Unfortunately, when I compare two already exisiting users on both machines, their password hashs are not identical.
So...
My questions to you are:
1. What would be the best way to figure out what encryption mechanism my old server is using?
2. What would be the best way to migrate my user's passwords from one machine to the other?
Thanks...