changig uid and the affect it will have

Hello,

I have 2 sun servers. We are running Oracle apps. We have to apply patches to both servers whenever a patch needs to be applied for Oracle.

We use the same username eg. applmgr on both servers. We have a shared patch area which we can run the patch from on both boxes.

the uid for applmgr on box 1 is 101
the uid for applmgr on box 2 is 801. This means that we have to keep chmod'ing the patch files on box 1 (no big deal I know) when we want to apply them on box 2. This is because they have different uid's.

What's the best way to modify uid's and what affect would it have on files that are already owned by applmgr. Both uid's will have to change.
Could I just change the uid in /etc/passwd on both boxes so that they are the same and then chown -R all files owned by applmgr ?

Thanks for any suggestions.
Dave

Use usermod with the -u option to change the userid. Then run the following commands:
box1:

find / -user 101 -exec chown applmgr {} \;

and on box2:

find / -user 801 -exec chown applmgr {} \;

thanks blowtorch for the quick reply.