Small blog about system administration.

Find files owned by user1 and chown to user2

find . -user user1 -exec chown user2 {} \;

or

find . -user user1 -exec chgrp grp2 {} \;

No comments :

Post a Comment