LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-30-2007, 01:31 PM   #1
djidji
LQ Newbie
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Arch
Posts: 27

Rep: Reputation: 15
best way to move users


what is the best way to move user data and settings from one system to another? and how about backing up users? thanks in advance...
 
Old 04-30-2007, 02:11 PM   #2
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
To ensure you also move the user settings, you'll have to explicitly copy the hidden folders in the users home dir. How to transfer the actual data should be clear I guess.

Afterwards you'll just have to adjust ownership of the files (chown -R).

To do a backup, just copy those hidden folders somewhere safe.
 
Old 04-30-2007, 02:33 PM   #3
djidji
LQ Newbie
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Arch
Posts: 27

Original Poster
Rep: Reputation: 15
thanks for the response. but what i was thinking was is there a way to tar all files and dirs including the hidden ones while preserving file ownership and properties? and if so can i go to a new system, re-create my user and untar my file and have everything in order? what confuses me is this:

- let's say i want to move user bob
- i create a new user bob on a new system
- i copy all bob's files to correct location on the new system

does user bob on new system have to have the same UID as the user bob on old system in order to be an owner of files copied? or is the username enough?

i hope this question makes sense...
 
Old 04-30-2007, 02:49 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I do this now and then when migrating users to different computers. It's quite simple:

1) either copy the entire /etc/passwd, /etc/shadow, /etc/group, or just copy user 'bob' from those files and put that onto the new system. Bob won't know anything has changed.
2) copy, backup, and restore bob's home directory

done

To answer your question
Quote:
does user bob on new system have to have the same UID as the user bob on old system in order to be an owner of files copied? or is the username enough?
Bob needs to have the same UID from the old computer for him to access his home directory on the new computer, UNLESS you chown bob's home directory. Usernames are conveniences for us humans. I could create a user named bob with a UID of 1000, and then create a username John with a UID of 1000 on another computer. To the system, "bob" and "john" are the same people.

Last edited by Micro420; 04-30-2007 at 02:53 PM.
 
Old 04-30-2007, 04:17 PM   #5
djidji
LQ Newbie
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Arch
Posts: 27

Original Poster
Rep: Reputation: 15
thanks a lot...
 
  


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
Move users to new server mnauta Linux - Networking 1 11-04-2006 03:57 AM
LXer: Novell preps users for move to Linux LXer Syndicated Linux News 0 03-28-2006 03:04 PM
How to move users FC3 mstone07 Fedora - Installation 3 01-03-2005 03:15 PM
moving server and move users mnauta Linux - General 1 04-08-2004 04:31 AM
Move mail users to another server bobcat Linux - General 2 06-06-2002 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:35 AM.

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
Open Source Consulting | Domain Registration