Jay,

MacOS isn’t the optimum, but you can do most of what you want with third party software.
So first of all clamdscan is single process and runs linearly for each clamdscan you run.

Scheduling is fine and works great, I usually run clamscan for those as I know it will run with it’s own process.

Exceptions are made in their clamd.conf or command line for clamscan.
Where to quarantine is also made at the above.

AutoScanning requires a third party application as BSD doesn’t support clamonacc, so I would recommend fswatch:
https://github.com/emcrisostomo/fswatch

So depending on your use case, I personally use a clamdscan plist for each user which launches fswatch to run a clamdscan on each user's access to a file on login.
You can also schedule a clamscan for specific directories to the whole server on a crontab.

My biggest hurdle which I couldn’t figure out was how to notify users when a suspect file was quarantined, as macOS has limitations on who can call the Notification library, but nothing to do with ClamAV.

My work around was just writing to file in the the Documents directory, which also Quarantined to a ~/Documents/Quarantine/ directory so if a file simple went missing I would know where it was from and where it went to.

P.S.  Have a good new year everyone...

Sincerely,

Eric Tykwinski
TrueNet, Inc.
P: 610-429-8300

On Dec 31, 2020, at 6:52 PM, Jay A. Schoon via clamav-users <clamav-users@lists.clamav.net> wrote:

Joel:

Thanks so much for responding. As of now I can on run on-demand single processor scans. 

Here are the things I would like to do:

  • Run scans that utilize multiprocessors (I believe I do have clamd installed, I just don’t know how to use it)
  • Schedule virus scans (a assume this can be done through a Bash script with Automator)
  • Stipulate which volumes and directories to scan/exempt
  • Choose to quarantine infected items
  • Auto-scan files on access

There is probably more but that’s the lion’s share of what I’d like. Thanks for responding.

Happy New Year!

JS


On Dec 31, 2020, at 4:39 PM, Joel Esler (jesler) <jesler@cisco.com> wrote:

What would you like to do other than what you have done?  Seems like you were able to cover the basics.  

Sent from my  iPhone

On Dec 31, 2020, at 15:47, Jay A. Schoon via clamav-users <clamav-users@lists.clamav.net> wrote:

 Hello:

I have installed ClamAV on a Mac running Mojave 10.14.6. I have successfully updated the package by running freshclam and run a scan. I have read the manual and a number of sites’ help for ClamAV. While I believe I have also installed clamd I have not been able to run a scan in multiprocessor mode and I’m sure there are gaps in my install and execution knowledge. Any help I could receive would be great. 

Thanks in advance,
JS

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
<smime.p7s>


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml