LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   4MLinux (https://www.linuxquestions.org/questions/4mlinux-115/)
-   -   4MLinux Antivirus manual scan options (https://www.linuxquestions.org/questions/4mlinux-115/4mlinux-antivirus-manual-scan-options-4175580947/)

4mlinuxfaq 05-29-2016 03:03 AM

4MLinux Antivirus manual scan options
 
Doing a full scan via antivir command gives you an option on what to do with the infected files.

But I've noticed that doing a manual scan of a file or folder for example via clamscan command only brings up a summary even after an infected file is found.

Is there a way to bring up that option during manual scan?

zk1234 05-29-2016 03:48 AM

Quote:

Originally Posted by 4mlinuxfaq (Post 5552480)
Doing a full scan via antivir command gives you an option on what to do with the infected files.

But I've noticed that doing a manual scan of a file or folder for example via clamscan command only brings up a summary even after an infected file is found.

Is there a way to bring up that option during manual scan?

That's not true. The "antivir" script displays more info on the screen before it starts scanning. This can be one of the following:
1) Location of log file.
2) Location of quarantine.
3) Statement that suspicious files will be deleted.
This depends on the scan option chosen by you.

4mlinuxfaq 05-29-2016 03:57 AM

Quote:

Originally Posted by zk1234 (Post 5552502)
That's not true. The "antivir" script displays more info on the screen before it starts scanning. This can be one of the following:
1) Location of log file.
2) Location of quarantine.
3) Statement that suspicious files will be deleted.
This depends on the scan option chosen by you.

I had a different exp.

Once I typed in antivir, it gave me an option to update the program and signature db.
After being updated, it asked me what I wanted to do if infected files are found, after choosing it starts to do a full system scan.

On a different scenario:
Manual scan via clamscan script only brings up a summary.

What I'm asking is, is there a way to bring up the [what to do with the infected files option] during a manual scan of a file or folder?

zk1234 05-29-2016 04:18 AM

Quote:

Originally Posted by 4mlinuxfaq (Post 5552504)
Once I typed in antivir, it gave me an option to update the program and signature db.
After being updated, it asked me what I wanted to do if infected files are found, after choosing it starts to do a full system scan.

That's not true. For example, if you choose to move to quarantine, you should see the following message before the scan starts: "Suspicious files will be moved to /var/clamav/quarantine."

My script is setup for scanning all files. For scanning selected files only, you must refer to the ClamAV documentation (https://www.clamav.net).

4mlinuxfaq 05-29-2016 04:29 AM

Quote:

Originally Posted by zk1234 (Post 5552512)
That's not true. For example, if you choose to move to quarantine, you should see the following message before the scan starts: "Suspicious files will be moved to /var/clamav/quarantine."

My script is setup for scanning all files. For scanning selected files only, you must refer to the ClamAV documentation (https://www.clamav.net).

I think you have misinterpreted my original post/question in the first place.

I acknowledge that the antivir script gives you an option on what to do with infected files prior to scanning. We both agree on that right?

Which brings me to my question.

Is there a way to bring up that same options [on what to do with infected files] during a selective scan of a file when using the clamscan script?

zk1234 05-29-2016 04:32 AM

Quote:

Originally Posted by 4mlinuxfaq (Post 5552520)
I think you have misinterpreted my original post/question in the first place.

I acknowledge that the antivir script gives you an option on what to do with infected files prior to scanning. We both agree on that right?

Which brings me to my question.

Is there a way to bring up that same options [on what to do with infected files] during a selective scan of a file when using the clamscan script?

Unfortunately, it's not possible. My script is designed for scanning all files. For scanning selected files only, you must refer to the ClamAV documentation (https://www.clamav.net).

4mlinuxfaq 05-29-2016 04:35 AM

Quote:

Originally Posted by zk1234 (Post 5552523)
Unfortunately, it's not possible. My script is designed for scanning all files. For scanning selected files only, you must refer to the ClamAV documentation (https://www.clamav.net).

Okay, thank you for that confirmation.

You have been very helpful today. :)

zk1234 05-29-2016 04:40 AM

Quote:

Originally Posted by 4mlinuxfaq (Post 5552520)
I acknowledge that the antivir script gives you an option on what to do with infected files prior to scanning. We both agree on that right?

Mea culpa. I have not noticed that you described the way, in which the clamscan utility worked for you (and not my antivir script). Sorry.

4mlinuxfaq 05-29-2016 04:45 AM

Quote:

Originally Posted by zk1234 (Post 5552526)
Mea culpa. I have not noticed that you described the way, in which the clamscan utility worked for you (and not my antivir script). Sorry.

It's okay. You've been really helpful, I appreciate it.


All times are GMT -5. The time now is 04:21 PM.