Operating System - HP-UX
1758157 Members
3100 Online
108868 Solutions
New Discussion

move users' passwds from one server to another server

 
SOLVED
Go to solution
Carme Torca
Super Advisor

move users' passwds from one server to another server

Hi,

 

I need to migrate one server to another one, and I ask if its possible to migrate the users and users's passwd between to B.11.23 U ia64 servers.

 

The servers are in trusted mode.

 

Thanks a lot of!

Carmen.

Users are not too bad ;-)
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: move users' passwds from one server to another server

Yes, it can be done.  You have to be sure to migrate both the /etc/passwd entries and the /tcb/file/auth/[A-Za-z]/* files that contain the users information and encrypted passwords.

laiju.c.babu
Regular Advisor

Re: move users' passwds from one server to another server

Hi,

 

For migrating the tcb files you can  use the below script

 

Please re-check once before doing this

 

cut -f 1 -d : /etc/passwd   > /tmp/userlist  ===== > this will create a file contains the list of users..
### Here we can edit this file (/tmp/userlist) we can remove all unwanted user names########

[65]> for i in $(cat /tmp/userlist)
> do
> grep -w $i /tmp/userlist > /tmp/filter
> a=`cut -c 1 /tmp/filter`
> cp -p -r /tcb/files/auth/$a/$i /tmp/final/
> done

####### /tmp/final contains only the passwd details of reqd users ###############

 

Laiju.C.Babu