Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-15-2004, 06:21 PM   #1
Registered: Oct 2002
Distribution: RH 8
Posts: 83

Rep: Reputation: 15
User Migration: how do you move /etc/shadow?

Hi, I am moving users to a new box which will completely replace the old box.

I've done a good amount of searching and noticed that everyone that's done this first starts off by moving /home and then the passwd, group, and shadow files over.

Everyone seems to do this in a different way with different precautions... namely some suggest to just copy the passwd, group, and shadow files over replacing the ones on the new machine. However since daemons and other system related UID and GIDs might be different, it's best to just copy over the users themselves.

I did this with group and passwd, but then I realized that shadow is an encrypted file, so I was unsure how this method would work with shadow. Can I simply edit out the parts I dont need from the shadow file from the old server and cat shadow.old >> /etc/shadow?

Thanks, I appreciate any advice.
Old 03-15-2004, 06:32 PM   #2
Registered: Aug 2003
Posts: 167

Rep: Reputation: 30
How many users and groups do you need to do this for? If it's not that many, why not just go ahead and set up the users and groups on the new box. This can cause a few unforeseen problems by moving /etc/shadow although I'm sure some people do it.
Old 03-15-2004, 06:48 PM   #3
Registered: Oct 2002
Distribution: RH 8
Posts: 83

Original Poster
Rep: Reputation: 15
several dozen users and about a dozen different groups.

Is there any way to turn shadowing off on the old server temporarily and then copy things over?

thanks for your response
Old 03-15-2004, 10:09 PM   #4
LQ Newbie
Registered: Nov 2003
Posts: 21

Rep: Reputation: 15

I've moved my users as you did to my new box also.
but it works fine.
you might be needed to synpasswd after finished move.
Old 04-13-2004, 12:26 PM   #5
LQ Newbie
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0

Would you guys have a more detailed description about migrating users,,
Im planning to move 70+ users from Fedora FC1 to Xandros 2.0.. In the past i have simply bash'd a little script/batch file using adduser/useradd... Is there a better way to do this.. as my way involved manually reseting every pass..

It would be just as good if there was some way to turn off the passwd conformation.. or maybe an expect script that would handle the passwd nag..

If im way off base please let me know.. 16yrs of windows has clouded my brain..



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
User migration from Samba to NIS ice_hockey Linux - Networking 1 05-16-2005 10:23 PM
authentication user by /etc/shadow Thomas23 Linux - Security 2 05-22-2004 11:52 AM
User and File Migration shemp Linux - Software 3 03-18-2002 06:19 PM
User account migration mjakob Linux - General 14 09-26-2001 02:53 PM
/etc/shadow in user authentication katana Linux - General 3 06-25-2001 12:02 AM > Forums > Linux Forums > Linux - General

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

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