Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-26-2008, 08:57 AM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Migrating Users To New Server

So we have obtained all new servers for our email server. We are also looking to move from RHEL 4 to Debian as our email platform and we are worried about losing users local password. I thought about simply importing the /etc/passwd /etc/shadow /etc/group, & /etc/gshadow to the new Debian machine however this worries me as many of the UID and GID of application services don't match and could possibly break something. I don't want to impact any of the service accounts but just the local users.

Do you guys have any suggestions?
Old 06-26-2008, 09:35 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Look in the /etc/login.defs file. It should give the range of user and system UIDs & GIDs. I don't know where Debian starts the UIDs. Fedora starts them at 500. SuSE at 1000. You could use awk to filter out the system ID's based on the UID number. If the regular UID range differs, it may be better to simply change the range on the Debian machine then changing the UIDs of the users files.
Old 06-26-2008, 10:14 AM   #3
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Debian looks to start their range of uid's at 1000 and I assume the gid's match that of uid's.


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
Migrating passwords and users rbizzell *BSD 2 08-23-2006 10:38 AM
Migrating Unix Users and Folders chrisfirestar Linux - General 1 09-24-2005 04:20 AM
migrating users evilchild Debian 9 04-03-2005 06:28 PM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 07:37 AM
Migrating users and homes to new server anthonykirk Linux - Hardware 3 06-11-2004 03:18 PM > Forums > Linux Forums > Linux - Server

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

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