1833788 Members
2800 Online
110063 Solutions
New Discussion

User migration

 
Vincent_5
Super Advisor

User migration

Hi Guys,
Can someone advice how can I migrate users accont from one server to another. The model of the server is rp3440 running on hpux 11.11

Regards
Vincent
nothing is better than to know more
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: User migration

copy /etc/passwd and /etc/group files from one server to the other

on the source server :

cat /etc/passwd | while read line
do
home=`echo $line|cut -d: -f6`
cd $home
tar -cf *|remsh target "cd $home; tar -xf"
done

make sur you do this while logged in as root and on the target server, root's .rhost file contains an entry as follows

sourceserver root

It is not the most elegant solution but it works. Limitation to consider: depending on the patch level of tar, there is a 2gb or 8gb file size limit while copying. If you have users, who keep files this big in their home directories, you will need to use a backup/restore solution for those files, for instance fbackup.

Hope this helps.

________________________________
UNIX because I majored in cryptology...
Rajeev  Shukla
Honored Contributor

Re: User migration

You both your servers are trusted servers then you'll also have to copy the protected password files under /tcb/files/auth
IT_2007
Honored Contributor

Re: User migration

copy their home directories, /etc/passwd and /etc/group files. But make sure that you able to login after copying /etc/passwd file since you should remember server 1 login/password.