Solved

Copy/Paste - user from a linux machine to another

Posted on 2009-04-05
2
320 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
ID: 24074243
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
ID: 31566892
Fantastic!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS vpc peering connection 1 43
AWS CLI - Issue with name display 2 51
nagios alerts 3 33
networking details on centos 6.6 4 52
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

895 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

15 Experts available now in Live!

Get 1:1 Help Now