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
  •  


Samsung 256 GB Internal SATA SSD Fully Tested 80-99% Health picture

Samsung 256 GB Internal SATA SSD Fully Tested 80-99% Health

$28.00



ON SALE TURBOLINK EVO  4TB V-HAND SSD 2.5 SATA III Internal Solid State Drive picture

ON SALE TURBOLINK EVO 4TB V-HAND SSD 2.5 SATA III Internal Solid State Drive

$199.99



Western Digital Blue 3D NAND 250GB 2.5

Western Digital Blue 3D NAND 250GB 2.5" SATA III Internal SSD - WDS250G2B0A

$29.99



Fikwot 512GB SATA SSD 2.5'' SSD SATA III 6Gb/s Internal Solid State Drive 560MBs picture

Fikwot 512GB SATA SSD 2.5'' SSD SATA III 6Gb/s Internal Solid State Drive 560MBs

$66.00



SAMSUNG SSD 512GB 500GB 480GB 256GB 250GB 240GB SSD 2.5 Solide State Drive 6Gbps picture

SAMSUNG SSD 512GB 500GB 480GB 256GB 250GB 240GB SSD 2.5 Solide State Drive 6Gbps

$40.99



256GB mSATA SSD DRIVE  MIXED BRAND TESTED WORKING picture

256GB mSATA SSD DRIVE MIXED BRAND TESTED WORKING

$23.50



Crucial 2TB P3 Plus NVMe PCIe 4.0 M.2 Laptop Desktop Internal SSD CT2000P3PSSD8 picture

Crucial 2TB P3 Plus NVMe PCIe 4.0 M.2 Laptop Desktop Internal SSD CT2000P3PSSD8

$199.00



Samsung PM871b MZ-7LN512F 512GB 2.5

Samsung PM871b MZ-7LN512F 512GB 2.5" SATA SSD Solid State Drive

$44.98



Toshiba THNSN81Q92CSE 1920GB SATA 2.5 Solid State Drive picture

Toshiba THNSN81Q92CSE 1920GB SATA 2.5 Solid State Drive

$199.00



Netac 120GB 256GB 1TB 2TB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot picture

Netac 120GB 256GB 1TB 2TB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot

$119.99