To overcome error where freshclam gives error Can’t create temporary directory /var/lib/clamav/clamav-…, you need to give your user and group rights to write to a folder /var/lib/clamav. To do so, enter following command after login in as root:
# su <enter>
# chown user1.user1 /var/lib/clamav <enter>