chown select files only

Posted by user114642 on Ask Ubuntu See other posts from Ask Ubuntu or by user114642
Published on 2012-12-14T09:26:35Z Indexed on 2012/12/14 11:20 UTC
Read the original article Hit count: 162

Filed under:
|

I use the (excellant) unison to sync two file servers and I've just realised i've synced a number of files without using the switch in unison that maintains the file user ownership. these files now have a user of root (coz i have to run unison as root)

Can I chown to a specified user BUT only change the files that now have the owner root and do so recursively in the directory in question? Sure i can but not sure of the arguments to "find files with owner 0 and change them to owner xxxx".

THX for any help...

© Ask Ubuntu or respective owner

Related posts about sync

Related posts about chown