Damn, a typo. Make that:
sudo find / -o -uid $olduid -print0 | sudo xargs -0 chown $newuid sudo find / -o -gid $oldgid -print0 | sudo xargs -0 chgrp $newgid
Damn, a typo. Make that:
sudo find / -o -uid $olduid -print0 | sudo xargs -0 chown $newuid
sudo find / -o -gid $oldgid -print0 | sudo xargs -0 chgrp $newgid