How to quarantine or delete infected files with ClamAV?












10














I scanned the home directory using ClamAV which found 13 threats.
The list was also displayed, but when I tried to delete or quarantine files, it did not proceed. Any ideas?










share|improve this question
























  • Can you please post a list with the files that Clamav (which searches for windows threats) assumed as threats?
    – hytromo
    Aug 3 '12 at 7:51










  • the next time scanning revealed no threats, hence i am not able to show you the threats, sorry.
    – Sivamani
    Aug 3 '12 at 10:55










  • however i dont know hoe to scn the pendrive or other devices?
    – Sivamani
    Aug 3 '12 at 10:56
















10














I scanned the home directory using ClamAV which found 13 threats.
The list was also displayed, but when I tried to delete or quarantine files, it did not proceed. Any ideas?










share|improve this question
























  • Can you please post a list with the files that Clamav (which searches for windows threats) assumed as threats?
    – hytromo
    Aug 3 '12 at 7:51










  • the next time scanning revealed no threats, hence i am not able to show you the threats, sorry.
    – Sivamani
    Aug 3 '12 at 10:55










  • however i dont know hoe to scn the pendrive or other devices?
    – Sivamani
    Aug 3 '12 at 10:56














10












10








10


4





I scanned the home directory using ClamAV which found 13 threats.
The list was also displayed, but when I tried to delete or quarantine files, it did not proceed. Any ideas?










share|improve this question















I scanned the home directory using ClamAV which found 13 threats.
The list was also displayed, but when I tried to delete or quarantine files, it did not proceed. Any ideas?







security antivirus clamav






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 24 '16 at 19:42









karel

56.9k11127146




56.9k11127146










asked Aug 3 '12 at 7:36









Sivamani

91225




91225












  • Can you please post a list with the files that Clamav (which searches for windows threats) assumed as threats?
    – hytromo
    Aug 3 '12 at 7:51










  • the next time scanning revealed no threats, hence i am not able to show you the threats, sorry.
    – Sivamani
    Aug 3 '12 at 10:55










  • however i dont know hoe to scn the pendrive or other devices?
    – Sivamani
    Aug 3 '12 at 10:56


















  • Can you please post a list with the files that Clamav (which searches for windows threats) assumed as threats?
    – hytromo
    Aug 3 '12 at 7:51










  • the next time scanning revealed no threats, hence i am not able to show you the threats, sorry.
    – Sivamani
    Aug 3 '12 at 10:55










  • however i dont know hoe to scn the pendrive or other devices?
    – Sivamani
    Aug 3 '12 at 10:56
















Can you please post a list with the files that Clamav (which searches for windows threats) assumed as threats?
– hytromo
Aug 3 '12 at 7:51




Can you please post a list with the files that Clamav (which searches for windows threats) assumed as threats?
– hytromo
Aug 3 '12 at 7:51












the next time scanning revealed no threats, hence i am not able to show you the threats, sorry.
– Sivamani
Aug 3 '12 at 10:55




the next time scanning revealed no threats, hence i am not able to show you the threats, sorry.
– Sivamani
Aug 3 '12 at 10:55












however i dont know hoe to scn the pendrive or other devices?
– Sivamani
Aug 3 '12 at 10:56




however i dont know hoe to scn the pendrive or other devices?
– Sivamani
Aug 3 '12 at 10:56










2 Answers
2






active

oldest

votes


















15














You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder. WARNING: Files are gone.



clamscan -r --remove /home/USER


Another possibility is to move the infected files to another folder with the option --move=FOLDER, so you can later check which files of them maybe not infected or a virus.



clamscan -r --move=/home/USER/VIRUS /home/USER


See: How do I scan for viruses with ClamAV?






share|improve this answer































    1














    Once the scan is finished, a window should pop up listing the threats. You have to actively select (click on) each threat you want deleted, then click on the delete or quarantine buttons. Simply clicking "delete" without selecting a file will do nothing, which is what you've run into. To select all, click on the top file, scroll to the bottom of the list, and shift-click on the last file. Then clicking quarantine or delete will process everything found. You will get confirmation windows popping up for deleting certain things like .pdf files.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f171441%2fhow-to-quarantine-or-delete-infected-files-with-clamav%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      15














      You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder. WARNING: Files are gone.



      clamscan -r --remove /home/USER


      Another possibility is to move the infected files to another folder with the option --move=FOLDER, so you can later check which files of them maybe not infected or a virus.



      clamscan -r --move=/home/USER/VIRUS /home/USER


      See: How do I scan for viruses with ClamAV?






      share|improve this answer




























        15














        You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder. WARNING: Files are gone.



        clamscan -r --remove /home/USER


        Another possibility is to move the infected files to another folder with the option --move=FOLDER, so you can later check which files of them maybe not infected or a virus.



        clamscan -r --move=/home/USER/VIRUS /home/USER


        See: How do I scan for viruses with ClamAV?






        share|improve this answer


























          15












          15








          15






          You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder. WARNING: Files are gone.



          clamscan -r --remove /home/USER


          Another possibility is to move the infected files to another folder with the option --move=FOLDER, so you can later check which files of them maybe not infected or a virus.



          clamscan -r --move=/home/USER/VIRUS /home/USER


          See: How do I scan for viruses with ClamAV?






          share|improve this answer














          You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder. WARNING: Files are gone.



          clamscan -r --remove /home/USER


          Another possibility is to move the infected files to another folder with the option --move=FOLDER, so you can later check which files of them maybe not infected or a virus.



          clamscan -r --move=/home/USER/VIRUS /home/USER


          See: How do I scan for viruses with ClamAV?







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 13 '17 at 12:24









          Community

          1




          1










          answered Feb 1 '13 at 16:53









          BuZZ-dEE

          9,085115169




          9,085115169

























              1














              Once the scan is finished, a window should pop up listing the threats. You have to actively select (click on) each threat you want deleted, then click on the delete or quarantine buttons. Simply clicking "delete" without selecting a file will do nothing, which is what you've run into. To select all, click on the top file, scroll to the bottom of the list, and shift-click on the last file. Then clicking quarantine or delete will process everything found. You will get confirmation windows popping up for deleting certain things like .pdf files.






              share|improve this answer


























                1














                Once the scan is finished, a window should pop up listing the threats. You have to actively select (click on) each threat you want deleted, then click on the delete or quarantine buttons. Simply clicking "delete" without selecting a file will do nothing, which is what you've run into. To select all, click on the top file, scroll to the bottom of the list, and shift-click on the last file. Then clicking quarantine or delete will process everything found. You will get confirmation windows popping up for deleting certain things like .pdf files.






                share|improve this answer
























                  1












                  1








                  1






                  Once the scan is finished, a window should pop up listing the threats. You have to actively select (click on) each threat you want deleted, then click on the delete or quarantine buttons. Simply clicking "delete" without selecting a file will do nothing, which is what you've run into. To select all, click on the top file, scroll to the bottom of the list, and shift-click on the last file. Then clicking quarantine or delete will process everything found. You will get confirmation windows popping up for deleting certain things like .pdf files.






                  share|improve this answer












                  Once the scan is finished, a window should pop up listing the threats. You have to actively select (click on) each threat you want deleted, then click on the delete or quarantine buttons. Simply clicking "delete" without selecting a file will do nothing, which is what you've run into. To select all, click on the top file, scroll to the bottom of the list, and shift-click on the last file. Then clicking quarantine or delete will process everything found. You will get confirmation windows popping up for deleting certain things like .pdf files.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 18 '16 at 12:26









                  Lacie Thayer

                  111




                  111






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f171441%2fhow-to-quarantine-or-delete-infected-files-with-clamav%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Quarter-circle Tiles

                      build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                      Mont Emei