Fix permissions and ownership of the files in the common task