I recently encrypted my home directory and since then I have realized Clam AV is not really scanning the file in my home directory. It is scanning the encrypted files. I am running the scan with the user who's home is encrypted (using ecryptfs-migrate-home
).
How can I recursively scan my encrypted home directory now using ClamTK
or freshclam
?
The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.