Solved

Copy/Paste - user from a linux machine to another

Posted on 2009-04-05
2
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

730 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