Set correct files modes