Operating System - HP-UX
1833262 Members
2827 Online
110051 Solutions
New Discussion

Migrating users and password from one trusted machine to another trusted machine

 
SOLVED
Go to solution
Kurtkarl
Frequent Advisor

Migrating users and password from one trusted machine to another trusted machine

Hi,

We're moving huge number of users from server A to server B. Both this servers are running hp-ux 11 and in a trusted security. We found ways how to migrate the users login accounts but we just want to know if we can migrate their password too so that the move will be totally transparent to the users. Plus we don't want them to enter a new password after the move.

Any help would be greatly appreciated.
Just starting to learn thru this forum
7 REPLIES 7
Aashique
Honored Contributor

Re: Migrating users and password from one trusted machine to another trusted machine

Hi,
you can take the /etc/passwd file then create the user home directory and change the ownership using awk script.

Thanks & Regards

Aashique
Pete Randall
Outstanding Contributor
Solution

Re: Migrating users and password from one trusted machine to another trusted machine

For a trusted system, you're going to need more than just the password file. You'll need to copy the /tcb/file/auth directories, too. See: http://docs.hp.com/en/5992-3387/apas03.html


Pete

Pete
Kurtkarl
Frequent Advisor

Re: Migrating users and password from one trusted machine to another trusted machine

Hi,

We were able to move their login and home directory with no problem but we want to bring over too their password so that users will not need to enter a new one. We just want this move to be totally transparent to the users as if they were still using the old server. Both the old and new server are in trusted mode. So I just to know if it is possible to move their password too. If yes, what should I be doing?

Thanks for your reply.
Just starting to learn thru this forum
Pete Randall
Outstanding Contributor

Re: Migrating users and password from one trusted machine to another trusted machine

Oops, make that /tcb/files/auth!

Pete

Pete
Robert Salter
Respected Contributor

Re: Migrating users and password from one trusted machine to another trusted machine

You can look at this and see if it will help;
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1154770


Cheers,

bob

-Like bob only spelt backwards-
Time to smoke and joke
Aashique
Honored Contributor

Re: Migrating users and password from one trusted machine to another trusted machine

Pete Randall>> your information is exactly ok.
the trusted database files, /tcb/files/auth/* also needed.

Thanks
Tim Nelson
Honored Contributor

Re: Migrating users and password from one trusted machine to another trusted machine

I have a script for new system set up it includes something like this.


The script tars up some files on the source, /etc/passwd, /etc/group, /var/sam/lp, /home/dirs, /usr/local/bin, etc.. executes lpmgr to load/restore the print configurations and much more.


Something like this will get you started:

awk -F: '$3 > 199 '{print $1" "$3" "$4" "$5" "$6" "$7}' /tmp/newpass|while read uname uid gid comment home shell
do
useradd -u $uid -g gid -c \"$5\" -m -d $home -s $shell $uname
modprpw -x $uname
done

(if you write it yourself you will learn loads of stuff vs someone giving it to you )


Best of luck.