I've got clamav installed on a headless Debian server. It is not running a mail-server so I do not have
clamav-daemon) running. The server has a Samba share (
/data) that various Windows 7 and Windows 10 boxes will be mapping.
There will be numerous Samba users and so the files/folders in
/data will be owned by various accounts/groups.
There will be files/folders that the
clamav account will not have permissions to read.
I want to create a daily cron job that will use
clamscan to scan
/data but I don't want to run
root because documentation and numerous articles says not to run ClamAV as
I have tested the scan by running
root so I know it works but not sure how to get it to work without running as
I'm not sure where to start or what to do. Any guidance is appreciated.