HP-UX system wide uid change

published 31/10/2007

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 {} \;