|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Hi,
I'm going to move my old linux to the other new machine. However, how can I backup all those user accounts and restore them on the new machine? Please help. Thanks. vizeta |
|
#2
|
|||
|
|||
|
Copy the home directories (found under /home/) and the appropiate lines from /etc/passwd and /etc/shadow (only for real users, not for system stuff, not for root).
__________________
PHP manual | MySQL manual | Apache docs | Linux Documentation Project | Free Software Foundation Smart Questions HOWTO | PHP security | PHP FAQ | Posting HOWTO Wikipedia | English dictionary | Google | News | RFCs Thus Spoke Zarathustra | A Skeptic's Guide to Christianity | Project Gutenberg | Skeptic's Annotated Bible ParEcon | Marxists Internet Archive | The Memory Hole | Landover Baptist | DHMO Research Universal Declaration of Human Rights | UN Charter | Geneva Conventions Sinfest | Chopping Block | Filthy Lies | Bob the Angry Flower | How to Shoot Yourself In the Foot |
|
#3
|
|||
|
|||
|
That's it? Thank you man. Let me try it.
![]() |
|
#4
|
|||
|
|||
|
One more thing - copy or backup /root/, if root wants to have his/her settings and personal files (although there shouldn't be any
) back. |
|
#5
|
|||
|
|||
|
There is more that you need to copy. The first thing you should copy is the /etc/group file. If you don't, what happens to all the owners of the files?
__________________
-MattWil |
|
#6
|
|||
|
|||
|
Oops - you're right.
![]() |
|
#7
|
|||
|
|||
|
Thx MattWil and realnowhereman,
So, what I should to do is: 1/ Copy /home/user directory 2/ Copy /etc/passwd 3/ Copy /etc/shadow 4/ Copy /root 5/ Copy /etc/group Thanks again. ![]() |
|
#8
|
|||
|
|||
|
If you're not changing your distro or upgrading to a newer version, this should be sufficient.
|
|
#9
|
|||
|
|||
|
Sorry if this is late but copy /etc/group first. If you don't then when you copy /home/user all of the files will lose their group setting.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > How to transfer user accounts? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|