Create the repository with proper permissions.