LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2009, 10:59 AM   #1
monkeyxu
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Question user password failed after migrating /etc/shadow, /etc/passwd ect from SUSE9 to CenOS


Hi All

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.

Thanks much

Yuan
 
Old 05-21-2009, 10:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by monkeyxu View Post
Hi All

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.

Thanks much

Yuan
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
migrating /etc/passwd (and shadow) between machines: why should it work? genmaicha Linux - Newbie 3 05-14-2009 04:43 PM
user autentication error because of manual modification in passwd / shadow nirmalsethy Linux - Newbie 1 11-20-2008 11:45 AM
Moving user accounts between computers (Something wrong with passwd, shadow, etc.) Lionhard Linux - Software 5 01-18-2008 09:53 PM
how passwd(1) for normal user changes /etc/shadow? sknowonweb Linux - Newbie 1 12-22-2005 01:06 PM
passwd / shadow issues -- Authentication failed BartonOC Linux - General 2 02-12-2004 09:50 PM


All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration