0

This question already has an answer here:

Because I hate viruses, I just want to get answer for small question about VIRUSES in Ubuntu.

Let assume my UBS have some viruses (from windows operating system), so should I used an antivirus to remove them before opening the USB or all windows viruses not work on ubuntu operating systems ?

I read some articles that wrote "say goodbye for viruses on ubuntu" but I'm still worried from USB viruses or downloaded RAR, Zip, EXE files.

marked as duplicate by muru, pomsky, karel, George Udosen, Videonauth Nov 6 '17 at 15:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Although I may be on thin ice, I do not think this is a duplicate of "Do I need to have 'antivirus software' installed ", IMO, the question is more a question of how to scan a shared flash drive, which, imo, is a valid user case. IMO askubuntu.com/questions/250290/… is a better duplicate as it answers the question and avoids the debate / drama. – Panther Nov 6 '17 at 15:47
  • @Panther: I support your motion but I think that your answer addresses the question better than “How do I scan for viruses with ClamAV?”. – David Foerster Nov 6 '17 at 18:36
  • Thanks for your support, perhaps it is best to keep it closed so that there is no drama. I would just duplicate it to askubuntu.com/questions/250290/… is all. – Panther Nov 6 '17 at 18:43
4

Note: AVOIDING THE DEBATE ABOUT ANTIVIRUS !!!

Not all malware is a "virus" . For your user case, scanning a shared removable device, you can scan your flash drive from either Linux or Windows.

From Ubuntu see - How do I scan for viruses with ClamAV? .

Be warned, however, in general windows antivirus scanners are better if you still use windows.

Linux antivirus have 2 broad "problems" :

  1. False positives - You will need to read and investigate the output of clamav and any reported "infected" files. Google search the reported file.

  2. Linux antiviurs can quarantine suspect files, but there is no way to remove the virus from Linux other than to delete the files.

    mkdir /$USB/VIRUS 
    clamscan -r --move=/$USB/VIRUS /$USB 
    

Where "$USB" is your mount point (see Why has Ubuntu moved the default mount points? )

Note: Linux security is very different than Windows security and in general "viruses" are almost non-existent in Linux.

Ubuntu security has it's foundations in :

  1. File permissions.

  2. Running with a limited account.

  3. UPDATES - your system was patched long ago for all known Linux viruses. Updating is a critical feature of security.

  4. Apparmor

I suggest you read https://wiki.ubuntu.com/BasicSecurity and https://help.ubuntu.com/lts/serverguide/security.html

Not the answer you're looking for? Browse other questions tagged or ask your own question.