Results 1 to 6 of 6

Thread: Knoppix deletes ClamAV log files - Impossible updates

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198

    Knoppix deletes ClamAV log files - Impossible updates

    I installed ClamAV in Knoppix on USB with persistent changes to use as a tool of repairing windows drives. Unfortunately after every boot /var/log/clamav folder is been deleted and it contains the freshclam.log file without which freshclam gives an error message and update is impossible. I have to manually recreate clamav folder and log file to update the anti-virus. I think it has something to do with syslog-knoppix.conf or syslog.conf but I am not sure how to fix this problem. If anyone has any ideas - Please help

  2. #2
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by mecho View Post
    I installed ClamAV in Knoppix on USB with persistent changes to use as a tool of repairing windows drives. Unfortunately after every boot /var/log/clamav folder is been deleted and it contains the freshclam.log file without which freshclam gives an error message and update is impossible. I have to manually recreate clamav folder and log file to update the anti-virus. I think it has something to do with syslog-knoppix.conf or syslog.conf but I am not sure how to fix this problem. If anyone has any ideas - Please help
    The places you mention seem like fertile ground for searching out the flaw. You can also put the actions you mentioned doing repeatedly, i.e.
    Code:
    mkdir /var/log/clamav
    in a script that runs on bootup, e.g. /etc/rc.local, which was mentioned in this thread as a place to put such.

    Hope that helps!
    Krishna

  3. #3
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Another thread that relates to the location for running scripts on bootup is here, for your viewing pleasure.

    Cheers!

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    Thank you Krishna - I was thinking about this solution myself. I have a few scripts running at boot of my own, but I dont know how to write the script which creates /var/log/clamav/freshclam.log and makes the CLAMAV as an OWNER and GROUP ID of the folder and the file in it. If freshclam.log is with root as owner and group id freshclam still won't update

  5. #5
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198

    Solved :)

    Problem SOLVED
    The solution is - Copy /var/log/clamav and /var/run/clamav into a new location which has persistence like /home. Before you copy check the original permissions of owner and group of both folders and files inside and memorize them, then restore the same permissions in the new location. When this is done edit /etc/clamav/clamd.conf and /etc/clamav/freshclam.conf and modify all instances in this files which point to the old location to point to the new persistent one. That's it - hope its helpful to anyone.
    freshclam works like a charm

  6. #6
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    Same can be achieved by running: dpkg-reconfigure clamav-base
    and following the step-by-step set-up.This will probably avoid the permissions misconfiguration. Did not try it though

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit picture

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit

$19.99



Windows XP, Vista, 8.1, Linux Knoppix, Office XP,  (6 CDS) picture

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)

$12.00



KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED picture

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED

$11.99



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$5.99



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION) picture

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)

$7.97



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$7.00



Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2 picture

Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2

$8.03



Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006 picture

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006

$34.38