Change permissions and owners in file templates