LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-31-2014, 08:11 AM   #1
hantverkare
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Rep: Reputation: Disabled
Unhappy How do I update anti-virus ClamAV


Have failed to update ClamAV program,and have recieved many such responses as below. Am newbie and have difficulty understanding the ways of the termial.
Thanks in advance for any help.

graeme@graeme-System-Product-Name:~$ freshclam -d
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
graeme@graeme-System-Product-Name:~$ crontab -e
no crontab for graeme - using an empty one

Select an editor. To change later, run 'select-editor'.
1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/vim.tiny
 
Old 03-31-2014, 08:35 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You have to start freshclam as root, not as unprivileged user.
 
1 members found this post helpful.
Old 03-31-2014, 12:52 PM   #3
hantverkare
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thankyou, can you suggest where I could find a step by step discription of starting freshclam as boot. I guess that I must boot while starting up, but where do I go from there? I have Ubuntu 12.04 LTS, is the method the same for the whole Linus family?
 
Old 03-31-2014, 03:20 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You have misread my post. You have to start freshclam as root user (this has nothing to do with booting the system). On a default Ubuntu system you would run the same command as before, but prefixed with the sudo command:
Code:
sudo freshclam -d
This will ask for your password to authenticate that you have the privileges to start an action as root. You may want to read this to get a better idea about privileged and unprivileged users on Linux/UNIX: https://help.ubuntu.com/community/RootSudo
 
Old 04-01-2014, 04:29 AM   #5
hantverkare
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
I pasted in sudo freshclam -d and then my password. Is that it? The terminal offered no response after, just repeated new entry text. Is it fixed now without response?
Ignorance is not bliss.
 
Old 04-01-2014, 04:55 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I just checked the manpage for freshclam and it states that the -d option (start freshclam as daemon in the background) requires that you also specify the -c option with a number that determines how often you want the daemon to check per day for updates. So you should try it with a command like
Code:
sudo freshclam -d -c 4
which will check 4 times per day for updates. The command returns no output, but you should see the freshclam daemon in the output of
Code:
ps aux
if it is running.
 
Old 04-01-2014, 06:56 AM   #7
hantverkare
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Ok have done, but where does one see the freshclam daemon output code ps aux? Obviously not in the terminal, as you stated and I observed - no responce.
 
Old 04-01-2014, 07:01 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you run
Code:
ps aux
in the terminal you should see something like this somewhere in the output:
Code:
clamav    1472 14.5  0.0  56428  2080 ?        Ss   14:01   0:02 freshclam -d -c 4
which shows that freshclam runs.
 
Old 04-01-2014, 03:46 PM   #9
hantverkare
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
This concerning clamav amongst other code text was displayed. No 4.

clamav 1703 0.0 13.5 393484 259720 ? Ssl 10:24 0:19 /usr/sbin/clamd
clamav 1834 0.0 0.0 47816 936 ? Ss 10:24 0:08 /usr/bin/freshc
clamav 9258 0.0 0.0 54156 1768 ? Ss 11:13 0:07 freshclam -d
clamav 9262 0.0 0.0 49952 1452 ? Ss 11:14 0:06 freshclam -d
clamav 10303 0.0 0.0 49952 1436 ? Ss 13:42 0:02 freshclam -d -c
 
Old 04-15-2014, 05:54 AM   #10
johntor
LQ Newbie
 
Registered: Jul 2011
Location: CT, USA
Distribution: Fedora, Ubuntu, Mint
Posts: 20

Rep: Reputation: Disabled
Hi hantverkare,

Did you know that Clamtk 5.0 is out, clamtk is the gui front end for clam (terminal command is "clamscan" ; terminal to open gui is "gksudo clamtk" = run as sudo root).

>commands are in quotes, do not type in quotes in command line<

http://ubuntuhandbook.org/index.php/...tu-linux-mint/

(incase link thing messes up: u can copy/paste this)
http://ubuntuhandbook.org/index.php/...tu-linux-mint/

for Ubuntu help page:
http://askubuntu.com/questions/28245...n-ubuntu-12-10

you might want to go with the ubuntu old style before jumping into 5, also on your freshclam I would get your update B4 starting the daemon thing as that will stop alot of unnecessary warnings about out of date/old def's etc.
sudo freshclam, also if you see warnings or unwanted messages the sourceforge clam site has much more info.

http://sourceforge.net/apps/mediawik...talling_ClamAV

hope that helps & good luck
JT
 
Old 04-15-2014, 01:47 PM   #11
hantverkare
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi JT,
Thanks for the tips. I'll check out those info.sites. I assume that Clamtk 5.0 is an improved version.
With lots of luck Iĺl finally get a grip on terminal knowhow.

hantverkare (translated: meaning craftsman - in Swedish)
 
  


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
How to update 'ClamTK' anti-virus cygpen Linux - Newbie 18 09-03-2011 10:41 AM
Anti-Virus Scan (avscan) update steve-a-reno Linux - Software 3 01-27-2009 03:25 PM
KlamAV Anti-Virus Manager Update error? suse91pro Linux - Software 7 11-05-2008 07:26 AM
using clamav, avg anti-virus Shadowalker Linux - Software 2 03-30-2006 12:01 AM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:15 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