Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-03-2005, 03:02 PM   #1
Registered: Sep 2004
Posts: 42

Rep: Reputation: 15
Changing Distros

Last year, I set up a Fedora 2 box to handle mail and a couple PHP websites. This box was dying, so I needed to set up a new one.

A friend convinced me to try Debian, and I like it quite a bit.

But now I need to move my users over. I have about 10 total users and their homes. Not a lot of stuff.

What is the bes way to do this? Should I just create new accounts, copy the homes and then set permissions?

Or is there some best known method for migrating?


Old 01-03-2005, 03:26 PM   #2
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

yes i think u can take a backup of home folders
apart form other activities

Old 01-03-2005, 03:44 PM   #3
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
One thing you'll need to make sure of is that the users have the same UID on the new system, otherwise your permissions will be b0rked completely.
Old 01-03-2005, 03:55 PM   #4
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
So here's some questions:

Should I just edit /etc/passwd and add the users, and assign them the same UIDs? Then give them all passwords via the passwd command?

What if a UID is already used up on the new machine? For example, what if a user had a UID of 110 on the old machine, but a different user has 110 on the new machine?

What do I have to do to change an existing user's ID? Just change it in /etc/passwd and then chown his ~/?

Thanks again!
Old 01-03-2005, 03:57 PM   #5
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
I would just create the users in the new system, copy the home directories over, and then run "chown" for each of them.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing distros, can I keep files?? Zerboxx Linux - Newbie 4 04-26-2005 12:17 PM
Changing Distros Treefrog Fedora 10 02-03-2005 12:51 PM
Changing Distros? apachedude Linux - Newbie 2 10-14-2004 08:44 PM
Changing Distros... DaveThePuzzled Linux - Distributions 20 06-16-2004 06:08 AM
Changing distros gwhlevy Linux - Software 5 07-11-2002 08:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration