0

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.

Ali H
  • 183
  • 1
  • 6
  • 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 https://askubuntu.com/questions/250290/how-do-i-scan-for-viruses-with-clamav is a better duplicate as it answers the question and avoids the debate / drama. – Panther Nov 06 '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 06 '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 https://askubuntu.com/questions/250290/how-do-i-scan-for-viruses-with-clamav is all. – Panther Nov 06 '17 at 18:43

1 Answers1

3

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

Panther
  • 102,067