LinuxQuestions.org
Register a domain and help support LQ
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 02-02-2006, 08:44 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
Is it possible to mirror the file passwd?


Hi!

I just buy a new server and would like to copy all the files (with their permissions and ownerships) with
Code:
tar -cf -<directory> | ssh user@host tar -xf- -C<target directory>
(saw it in another post) fom the old server to the new one (both are SOLARIS). Before that, I have to get all the users from the old server to the new server. Can I just copy the last lines from the passwd file (the lines with the added users) or is it not that simple?

Thanks for your help.

XpucTo
 
Old 02-02-2006, 08:58 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Shouldn't be a problem, make sure to copy the appropiate shadow file and group file as well.
 
Old 02-02-2006, 09:02 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Thanks. Is there otherwise a more "academic" way to copy a whole server to a new one?
 
  


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
question about /etc/passwd file hongxing Linux - Software 2 11-30-2005 11:47 AM
Where can i find the passwd file? alice95089 Linux - Software 3 04-06-2005 11:01 PM
odd entry in /etc/passwd file globeTrotter Linux - Security 4 07-21-2004 10:27 PM
/etc/passwd file wedgeworth Linux - Software 1 10-09-2003 01:53 PM
APT questions -- file on the mirror, not in the cache... MatthewSabin Linux - Software 6 06-15-2003 12:34 AM


All times are GMT -5. The time now is 09:13 PM.

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