Hello,
CentOS/Redhat/AlmaLinux:
Bash:
# Test and see current user
grep --color -E "^(#|)User" /etc/clamd.d/scan.conf
# Disable it
perl -pi -e 's/^User /#User /' /etc/clamd.d/scan.conf
Debian/Ubuntu:
Bash:
# Test and see current user
grep --color -E "^(#|)User" /etc/clamav/clamd.conf
# Disable it
perl -pi -e 's/^User /#User /' /etc/clamav/clamd.conf
and restart clamav daemon.