Operating System - HP-UX
1830362 Members
2379 Online
110001 Solutions
New Discussion

Going to new server, need to change some UIDs

 
SOLVED
Go to solution
Pat Watson
Occasional Contributor

Going to new server, need to change some UIDs

We are moving to an rx3600 Integrity server soon and a number of the UIDs on our old HP9000 are reserved numbers on the new machine.

I have found conflicting information as to whether or not the UIDs need to match on both machines before we copy files over. One such bit of info was to use 'tar' instead of 'rcp' to move files over as it will try to match on name and if successful will use the UID on the target machine.

Is this true and is it the best solution? If not (on either count), I would appreciate some suggestions as to how best approach this problem.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Going to new server, need to change some UIDs

Hi Pat:

> One such bit of info was to use 'tar' instead of 'rcp' to move files over as it will try to match on name and if successful will use the UID on the target machine.

That's true, so this is one option for you.

If at anytime you want to verify that you have no un-owned files you can do:

# find / -nouser -o -nogroup

You can then use 'chown' to change the owner and group as necessary.

Regards!

...JRF...
Pat Watson
Occasional Contributor

Re: Going to new server, need to change some UIDs

Great news. Thank you.