LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-04-2004, 01:48 PM   #1
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Rep: Reputation: 15
Moving existing users from one Linux server to...


another Linux server with indentical settings. I built another Linux server 2.1AS with identical settings (different hostname) for redundancy and practice. I would like to save sometime by moving all the users and groups over to the new server. Would this be possible without a backup software or any kind? If yes, what are some of the steps that I need to take to proceed? Any ideas??

Thank you in advance.
 
Old 03-04-2004, 02:12 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Sure, just copy these over to the new box...

/etc/passwd
/etc/shadow
/etc/group
/home/*
 
Old 03-04-2004, 02:54 PM   #3
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
Thanks for the quick response. Would you know if I can FTP these files over, would these files permission stay the same?

Again, thanks!!
 
Old 03-04-2004, 03:24 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I don't know what ftp would do to the permissions.
 
Old 03-04-2004, 03:46 PM   #5
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
Just thought I asked....

Thank you!!
 
Old 03-04-2004, 03:54 PM   #6
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
Another question;
What if my my "root" account doesn't have the same UID & GID for both boxes and I am trying to copy from one to the other? Will this going to mess up my plan?
Homey - What would you do if you need to put in place a "warm" spare incase of downtime on the production server? I don't want to have to reinvent the wheel so to speak and minimum down-time if all possible.

I am interested in your feedback.

Thanks,
xmdms
 
Old 03-04-2004, 04:15 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Well now that you ask,
I would make an image of your up and running system. I do that anyway for a surefire backup, but if you want to clone this system to another box, it is very easy to grab that image and install it to the new box.

Partimage works very nicely for this as it only copies the used areas of the disk as apposed to dd which copies everything ( used or not ). In other words partimage is much faster.

Also, I copy the partition table with sfdisk which makes it very handy to copy that file onto another hard drive.
 
Old 03-04-2004, 05:41 PM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The user 'root' always has the uid=000.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Solaris Users and Passwords to Linux chicofidel Linux - Newbie 6 08-19-2005 06:55 AM
Moving users from old to new debian server Durham Linux - Enterprise 0 02-14-2005 04:30 AM
moving hard drive with existing data to FC3 supra92 Linux - General 6 12-28-2004 03:09 PM
moving server and move users mnauta Linux - General 1 04-08-2004 04:31 AM
Moving existing directory to new partition? chris8myshoe Linux - General 3 02-04-2004 08:48 PM


All times are GMT -5. The time now is 10:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration