LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2006, 02:35 PM   #1
gbowden
Member
 
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1 64bit - multilib
Posts: 148

Rep: Reputation: 28
clamscan takes ages to complete.


When I run clamscan -r -i --bell / it takes 10 hours to scan 78.2 GB.

Should it be taking this long?
 
Old 02-06-2006, 02:42 PM   #2
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Sounds close to my results - scanning some 30 GB of data takes about 4-5 hrs. That's empirical, I've never actually timed it. Think I might though...
 
Old 02-06-2006, 04:34 PM   #3
palceksmuk
LQ Newbie
 
Registered: Dec 2005
Distribution: slackware 10.2
Posts: 26

Rep: Reputation: 15
are there any viruses that work on linux?
 
Old 02-06-2006, 04:57 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Absolutely. Not nearly the amount on Windows of course. We have to worry about rootkits.
 
Old 02-06-2006, 05:34 PM   #5
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Okay, just tried this on my home server:

Code:
root@box~#  time /usr/bin/clamscan --quiet -l /var/log/clamav.log --move=/var/clamav_quarantine -r /home

Real: 86m13.756s
User: 71m3.765s
Sys:  3m52.690s

root@box~#  du -cm /home

17182 total
So 17,182 MB in 1h 16m ~= 80,000 MB in, uh, ~6h 40m (worked that out on my fingers ). That's on a an Athlon 2600+ / 512MB / 5400RPM IDE. I could see a slower machine taking longer. What are you machine's specs?
 
Old 02-06-2006, 05:43 PM   #6
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
I just scan my mail folders. With good computing hygene how would a virus get into a folder only writable by root?
 
Old 02-07-2006, 01:10 PM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Edit: I'm a dumbass -- read below.

Last edited by mdarby; 02-07-2006 at 01:47 PM.
 
Old 02-07-2006, 01:23 PM   #8
gbowden
Member
 
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1 64bit - multilib
Posts: 148

Original Poster
Rep: Reputation: 28
I've got a AMD Sempron Processor 3000+ @ 1808 Mhz with 512 MB of RAM.

My hard drive is using udma 5.

I don't really know what the problem is I thought it would be quicker than that.
 
Old 02-07-2006, 01:46 PM   #9
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Oops. I forgot my script only scans everything from the previous work week;
Code:
#!/bin/bash

dir[0]="/home"
dir[1]="/mnt/smb/profiles"

find ${dir[@]} -mtime -5 -type f -print0 | xargs -0 /usr/local/bin/clamscan --infected --recursive --unzip --move=/var/quarantine
 
Old 02-07-2006, 06:05 PM   #10
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally Posted by palceksmuk
are there any viruses that work on linux?
all I scan is samba shares and apache directories (edit: and /tmp).

The samba shares, because Windows boxes have access to them.

Apache shares - because apache worms, the few that exist - are cross-platform and will compile on Windows, Linux, OS/X, or any other platform with a particular vulnerability. I have apache patched but it's a cat-and-mouse game.

Last edited by KimVette; 02-07-2006 at 06:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting takes ages! Steave Linux - General 3 02-23-2006 06:39 AM
Takes ages to connect to smtp Swakoo Linux - General 3 08-23-2005 03:32 AM
Configuring network interfaces..takes AGES! coolblue Linux - Newbie 6 07-20-2005 07:33 AM
X takes ages and ages to load! dcdbutler Slackware 9 03-23-2005 07:53 AM
'Whatever' login takes ages... Worstje Slackware 7 10-15-2004 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration