Welcome to the most active Linux Forum on the web.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 06-12-2006, 09:07 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Lightbulb Moving of user accounts from one server to other

We have a client (Running rhel as 3.0 u2) with a server hosting webpages & email
for several virtual domains. This server has a very low configuration so We'd like to move everything to a new server with beter resourses interms of cpu and ram . Moving the webpages is not a problem,but is there an easy way to move the user accounts without having to recreate them twice (once onto the them server & then again back to the main
server)? . And how should i move there mail boxs ????? Any info or link to a HowTO would be most appreciated.

The client is using squirrelmail

Last edited by zealkabi; 06-12-2006 at 09:13 AM.
Old 06-15-2006, 02:15 PM   #2
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
It's straightforward - unlike Windows user accounts are very simple. If you are using local accounts then a user account is just a line in three files (/etc/group, /etc/passwd, /etc/shadow), a home directory and probably a mailbox file in /var/spool/mail.

You can copy the lines that relate to the user accounts from the three /etc files in the old system to a copy of the files on the new system. Then replace the files on the new system with your edited versions.

Then create home directories, transfer the files with SSH, and reset permissions. You can write a shell script to do these.
Old 06-16-2006, 02:02 AM   #3
LQ Newbie
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
it is working
i just copied
etc/group, /etc/passwd, /etc/shadow for all users > 501
and the /home directories with all permisions it is working


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
Moving profile data between user accounts =dn Linux - General 2 02-19-2006 11:19 PM
Moving Linux accounts to MacOS X server? evilchild Linux - General 1 04-09-2005 07:05 PM
moving user accounts gurra Linux - Security 1 11-25-2003 09:14 AM
moving user accounts to an NFS server esteeven Linux - Networking 1 08-28-2003 09:21 PM
moving user accounts to an NFS server esteeven Linux - Networking 3 08-28-2003 08:12 PM

All times are GMT -5. The time now is 12:29 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