HP-UX system uid change

following is a procedure to make 2 SAP SIDadm users who share the same UNIX UID, live together on the same app server, by changing one of the user’s UID (including the files)

# first change in /etc/passwd
usermod -u newUID loginname

# now go recursively and change the files accordingly
find / -user oldUID -exec chown newUID {} \;