and please note: your own sh script needs chmod 0775 - it must be run as program for all users! your log folder should have chmod 0775 and your log files inside chmod 0644 - bust this are suggestions only
Von / From: Clamav User Mailinglist <mailto:clamav-users@lists.clamav.net> An / To: Newcomer01 <mailto:newcome...@posteo.de> CC / CC: Tim Mcconnell <mailto:tmcconnell...@gmail.com> Gesendet / Sent: Mittwoch, März 22, 2023 um 23:04 (at 11:04 PM) +0100 Betreff / Subject: Re: [clamav-users] How to get rid of or Fix clamonacc error
So Marc, you're saying do something like this: #/bin/bash declare clammy.sh /usr/bin/clamscan --exclude ="^/home/tmick/.clamtk/viruses" --exclude ="^/home/tmick/Documents/ACI_Learning/CEH/" --exclude = "^/home/tmick/Nextcloud/Documents/ACI_Learning/*" --exclude ="^/home/tmick/Nextcloud/*" --exclude = "smb4k" --exclude = "^/run/user/tmick/gvfs" --exclude = "^/home/tmick/.gvfs" --exclude = "^.thunderbird" --exclude = "^.mozilla-thunderbird" --exclude = "^.evolution" --exclude =Mail -i --detect-pua -r /home/tmick -- log="$HOME/.clamtk/history/$(date +%b-%d-%Y).log" 2>/dev/null # clamtk- scan and just call the script from cron? For example 0 1 *** clammy.sh correct??
_______________________________________________ Manage your clamav-users mailing list subscription / unsubscribe: https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/Cisco-Talos/clamav-documentation https://docs.clamav.net/#mailing-lists-and-chat