set permissions for versionfile first