find . -user 23136 -print | while read filename
do
# Before
ls -lad "${filename}"
# Remove echo when tested
echo chown dsadm "${filename}"
# After
ls -lad "${filename}"
done
When using "find -user" and "chown", you have to beware of symlinks. The find will find symlinks owned by that user, but chown will change the ownership of the file pointed to, not the symlink itself. When fixing up file ownerships like this, it's better to use chown -h