Reowning Ubuntu

Post date: 29-Apr-2011 08:53:28

August 15th, 2007

NFS is a pain because you need to have the same UIDs on different systems. It seemed easiest to change my UID on my Ubuntu box.

usermod -u 1234 phil

Simple enough and it even chowned the files in my home directory. But I still have files everywhere which have my old uid. I’d like to find and own them, seems like a pain, could take ages? Easy with GNU find:

sudo find / -uid 1000 -exec chown phil \{\} \;