x-scan: Fix permissions.