Did you try anything so far? It can be done using
chown cmd, with recurssive option:
Code:
chown -R new_owner /path/to/dir
Well, as far as I know, there's no way to change owner as soon as a new file gets created inside that directory. But in such situation, to protect data or for availability of data to all memebers of a group/project, you can go with
SGID and
Sticky bit utilities.