Operating System - HP-UX
1834814 Members
2869 Online
110070 Solutions
New Discussion

1 Trusted system 1 Non-Trusted system

 
SOLVED
Go to solution
Chrisl_2
Frequent Advisor

1 Trusted system 1 Non-Trusted system

Hi all.

I am in the process of moving a production l2000 system to a new RP3410. The production system is trusted. The new system is not. To get the user accounts over, I was planning on copying the production system /etc/passwd file to the new system, then running tsconvert.

Is this the way to go?

TIA

9 REPLIES 9
IT_2007
Honored Contributor

Re: 1 Trusted system 1 Non-Trusted system

Why don't you take ignite image and restore onto new server. Make sure that you shutdown actual production server before you bring up new one.
Chrisl_2
Frequent Advisor

Re: 1 Trusted system 1 Non-Trusted system

Ignite doesn't work across different hardware and OS platforms.
Sp4admin
Trusted Contributor

Re: 1 Trusted system 1 Non-Trusted system

Hi Chris,

You may want to copy the /etc/group file and create the /home directories also.

Sp,
Patrick Wallek
Honored Contributor

Re: 1 Trusted system 1 Non-Trusted system

I would actually go about this the other way around.

I would:

1) Convert the new system to trusted.
2) Copy /etc/passwd, /etc/group and the /tcb directory structure from the old system to the new.

A. Clay Stephenson
Acclaimed Contributor
Solution

Re: 1 Trusted system 1 Non-Trusted system

As root on the old (trusted) box.

cd /
tar xvf /tmp/passwd.tar /tcb /etc/passwd /etc/group /home

Now ftp, rcp, /tmp/passwd.tar to the new box.

Next login as root on the new box in at least two sessions so that you can get yourself out of trouble as fast as you got yourself in.

cp /etc/passwd /etc/passwd.safe
cp /etc/group /etc/group.safe

cd /
tar xvf /tmp/passwd.tar

This will copy the passwd, group, and the entire /tcb and /home directories in one swoop.

Now logout of ONE of your root session and attempt to login as root using the passwd of the original system. You should be good to go.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: 1 Trusted system 1 Non-Trusted system

Clay's first 'tar' statement should actually be 'tar cvf /tmp/passwd.tar /tcb /etc/passwd /etc/group /home' to Create the tar file.
A. Clay Stephenson
Acclaimed Contributor

Re: 1 Trusted system 1 Non-Trusted system

Absolutely Patrick. That was state-of-the-art stupid on my part. Spelling definitely counts in UNIX.
If it ain't broke, I can fix that.
IT_2007
Honored Contributor

Re: 1 Trusted system 1 Non-Trusted system

oops. sorry i didn't check that you are migrating to different platform. You convert new system and then copy /tcb and /etc/passwd and group files.
Chrisl_2
Frequent Advisor

Re: 1 Trusted system 1 Non-Trusted system

Thanks all. I used the tar cf /etc/passwd /etc/group /tcb /home command. Then I extracted it on the new system. There was some weirdness with certain users (I might have it narrowed down to accounts that had passwords longer then 8 characters, still trying to figure it out).

Thanks again!