Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: freshclam not updating due to permission issue

  1. #1
    Join Date
    Feb 2011
    Location
    Calgary, Canada
    Beans
    36
    Distro
    Ubuntu 14.04 Trusty Tahr

    Unhappy freshclam not updating due to permission issue

    freshclam doesn't want to update the signature database due to a permissions problem with the logfile:

    Code:
    ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).
    ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).
    The permissions for the freshclam.log file are wide open:
    Code:
    tom@HouseMedia:~$ ls -al /var/log/
    -rwxrwxrwx  1 clamav    clamav           0 2012-03-17 01:36 freshclam.log
    And although this shouldn't be a problem, I check the parent folder as well:
    Code:
    tom@HouseMedia:~$ ls -ld /var/log/
    drwxr-xr-x 18 root root 4096 2012-04-01 06:48 /var/log/
    Help?

  2. #2
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: freshclam not updating due to permission issue

    What release are you using?

  3. #3
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: freshclam not updating due to permission issue

    Quote Originally Posted by antiartist View Post
    freshclam doesn't want to update the signature database due to a permissions problem with the logfile:
    .........
    The permissions for the freshclam.log file are wide open:
    Code:
    tom@HouseMedia:~$ ls -al /var/log/
    -rwxrwxrwx  1 clamav    clamav           0 2012-03-17 01:36 freshclam.log
    Here is mine:

    Code:
    -rw-r----- 1 clamav adm  7797 2012-04-02 18:13 freshclam.log
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  4. #4
    Join Date
    Feb 2011
    Location
    Calgary, Canada
    Beans
    36
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: freshclam not updating due to permission issue

    Quote Originally Posted by Bucky Ball View Post
    What release are you using?
    Ubuntu Linux 10.04.2
    ClamAV 0.96.5 (does that sound right? I downloaded it probably a month ago)

  5. #5
    Join Date
    Feb 2011
    Location
    Calgary, Canada
    Beans
    36
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: freshclam not updating due to permission issue

    <bump>

  6. #6
    Join Date
    Jan 2009
    Location
    Santander, Spain
    Beans
    1,981
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: freshclam not updating due to permission issue

    Have you changed group owner and permissions in the file?

    As dcstar has pointed, fresclam.log group has to be adm, and permissions -rw-r-----

  7. #7
    Join Date
    Feb 2011
    Location
    Calgary, Canada
    Beans
    36
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: freshclam not updating due to permission issue

    Quote Originally Posted by claracc View Post
    Have you changed group owner and permissions in the file?

    As dcstar has pointed, fresclam.log group has to be adm, and permissions -rw-r-----
    Look like I fiddled some more after making my permissions post as it is now what dcstar suggested...

    Code:
    tom@HouseMedia:/var/log$ ls -l freshclam.log
    -rw-r----- 1 clamav adm 0 2012-08-05 06:30 freshclam.log

  8. #8
    Join Date
    Jan 2009
    Location
    Santander, Spain
    Beans
    1,981
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: freshclam not updating due to permission issue

    So, if you run sudo freshclam in xterm, what do you obtain now ?

  9. #9
    Join Date
    Feb 2011
    Location
    Calgary, Canada
    Beans
    36
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: freshclam not updating due to permission issue

    Nothing has changed. I still get the same error:

    ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).
    ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).

  10. #10
    Join Date
    Jan 2009
    Location
    Santander, Spain
    Beans
    1,981
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: freshclam not updating due to permission issue

    I don't have freshclam.log file under /var/log/ but under /var/log/clamav/

    clara@clara1:/var/log/clamav$ ls -la
    total 168
    drwxr-xr-x 2 clamav clamav 4096 2012-08-05 08:09 .
    drwxr-xr-x 18 root root 4096 2012-08-12 08:23 ..
    -rw-r----- 1 clamav adm 50729 2012-08-12 08:23 freshclam.log

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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