Originally Posted by monkeyxu
My name is Yuan and I am new to this forums.
Here is my first question:
I had done many system migrations from RH to Fedora. All my user passwords worked fine on the new system via copying user portions of /etc/shadow, /etc/password and /etc/group etc.
Now I am migrating user data and accounts info from SUSE9 to CentOS5. Everything is fine but all user passwords failed while trying to log in the new CentOS server. I have a couple of hundred accounts so resetting the passwords on the new server is not a good option.
Anyone knows why it failed (my guess is that the algorithm used to encrypt passwords is different for SUSE and RH)?
and any suggestions other than resetting all the user passwords?
PS, I had searched the net and this forums and seems to me I got no answer.
Try looking at the permissions/ownership of the files, and also of the /etc directory. Portsentry installation was notorious for doing a chmod 700 on /etc, so no one but root could log in correctly. /etc/shadow should be 640 (rw-r-----), owned by root:shadow. /etc/passwd should be 644 (rw-r--r--), owned by root:root.