Results 1 to 6 of 6

Thread: CLAMAV Problem

  1. #1
    Join Date
    Apr 2013
    Posts
    74

    CLAMAV Problem

    Hi all,

    Installed ClamAV on my server a few days ago and received an email "ERROR: Can't create temporary directory /usr/local/cpanel/3rdparty/share/clamav/clamav-3a48dc9069610df493a05e6e147a5410.tmp"

    On the Clam wiki is states

    "Error: Can't create temporary directory
    If you get the following error, along with a 'HINT' containing a UID and a GID number:
    # can't create temporary directory
    Correct permissions:
    # chown UID:GID /var/lib/clamav & chmod 755 /var/lib/clamav"


    I did not get a hint of UID or GID so unable to SSH this command.

    Anyone able to help?

    Many thanks

    earthblaze

    Sorry ... didn't mention I am running latest cpanel on Centos 6.3 64 bit with CSF installed
    Last edited by Earthblaze; 12-04-2013 at 07:22 PM. Reason: add software specs

  2. #2
    Join Date
    Mar 2003
    Location
    /root
    Posts
    23,991
    You need to fix the permission as per the clam wiki instructions.

    Specially 4 U
    Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
    JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
    Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx

  3. #3
    Join Date
    Apr 2013
    Posts
    74
    I tried SSHing the command as it is written but it did not solve the problem. Presumably I need to input the actual UID and GID. Any idea where I would find these?

  4. #4
    Join Date
    Jan 2003
    Location
    SLC
    Posts
    2,278
    UID = user identification
    GID = Group identification

    UID located in /etc/passwd file
    GID located in the /etc/group file

  5. #5
    Quote Originally Posted by Earthblaze View Post
    Hi all,

    Installed ClamAV on my server a few days ago and received an email "ERROR: Can't create temporary directory /usr/local/cpanel/3rdparty/share/clamav/clamav-3a48dc9069610df493a05e6e147a5410.tmp"

    On the Clam wiki is states

    "Error: Can't create temporary directory
    If you get the following error, along with a 'HINT' containing a UID and a GID number:
    # can't create temporary directory
    Correct permissions:
    # chown UID:GID /var/lib/clamav & chmod 755 /var/lib/clamav"


    I did not get a hint of UID or GID so unable to SSH this command.

    Anyone able to help?

    Many thanks

    earthblaze

    Sorry ... didn't mention I am running latest cpanel on Centos 6.3 64 bit with CSF installed

    chown clamav:clamav /usr/local/cpanel/3rdparty/share/clamav

    cPanel has an internal ticket on this and it is scheduled to be fixed in a cPanel update in the near future.

    freshclam is run as user 'clamav', but /usr/local/cpanel/3rdparty/share/clamav is owned by root. Their recommended temporary fix is just to chown that directory clamav:clamav. If they deem permissions should be different down the road, they'll just do that in an update.

    M

  6. #6
    Join Date
    Apr 2013
    Posts
    74
    Thanks guys,

    All sorted with temporary fix

Similar Threads

  1. problem with auromatic scan clamav
    By ertebat7 in forum Hosting Security and Technology
    Replies: 6
    Last Post: 11-19-2012, 09:52 AM
  2. i have problem with install ClamAV Scanner
    By q8yas in forum Managed Hosting and Services
    Replies: 2
    Last Post: 09-06-2008, 08:28 AM
  3. ClamAV problem
    By AltusHost in forum Hosting Security and Technology
    Replies: 4
    Last Post: 06-11-2008, 07:15 AM
  4. clamav problem on cPanel Server
    By firestarter in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-17-2005, 09:00 AM
  5. Clamav problem
    By chanch in forum Hosting Security and Technology
    Replies: 13
    Last Post: 01-12-2005, 03:00 AM

Posting Permissions

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