Solved

Copy/Paste - user from a linux machine to another

Posted on 2009-04-05
2
319 Views
Last Modified: 2013-12-15
Hi,

I have made an image of my linux set up and installed it on a new machine. It appears to have worked but the user I had made in the original linux setup did not copy of when I made the image. Can I zip the original user's folder and transfer it over to the new linux machine? - How?

Thanks,
waffe
0
Comment
Question by:waffe
2 Comments
 
LVL 14

Accepted Solution

by:
Deepak Kosaraju earned 200 total points
Comment Utility
S you can move all the user folder from server1:/home - server2:/home using scp.
then user usermod on server2 to change the user's home dir to /home/user1 etc


From Server1

#scp -r /home/* test@server2:/home/

On Server2

#usermod -d /home/user1 user1

Open in new window

0
 

Author Closing Comment

by:waffe
Comment Utility
Fantastic!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now