find - 所有者で検索 / chmod で変更
find では -user オプションを使う。
ユーザIDも使えるらしい。
find ./ -user nobody
#"user1"のユーザ領域内にある、"nobody"のファイル所有者を、"user1"に変更する find /home/user1 -type f -user nobody -exec chown user1 {} \;
グループも、-group オプションで。
グループIDも使えるとのこと。
find ./ -group nobody
#"user1"のユーザ領域内にある、"nobody"の所有権を、"apache"に変更する find /home/user1 -group nobody -exec chgrp apache {} \;