[clamav-users] Unable to run clamd in /opt/directory

Dennis Peterson dennispe at inetnw.com
Thu Nov 5 17:23:01 UTC 2015


What are the directory permissions/extended permissions for /opt?

Did you try sudo -u clamdUserName cat /opt/clamd.conf to see if the clamd user 
has permission to access the file?

dp

On 11/4/15 6:15 AM, P K wrote:
> Hi Guys,
>
> I am seeing config file parse error when using config file inside /opt/
> directory.
>
> Curious why unable to run clamd config in /opt directory.   In other system
> with 0.98.6  its working fine.
>
> Below are output:
>
> sudo /usr/sbin/clamd --version -c ./clamd.conf
> ClamAV 0.98.7
>
>
> pk at pk-x:~$ ls -ltr /opt/clamd.conf
> -rw-r--r-- 1 root root 1981 Nov  4 19:07 /opt/clamd.conf
>
> pk at pk-x:~$ ls -ltr ./clamd.conf
> -rw-r--r-- 1 root root 1981 Nov  4 19:07 ./clamd.conf
>
> pk at pk-x:~$ sudo /usr/sbin/clamd -c /opt/clamd.conf
> *ERROR: Can't open/parse the config file /opt/clamd.conf*
>
> pk at pk-x:~$ sudo /usr/sbin/clamd -c ./clamd.conf
> Limits: Global size limit set to 104857600 bytes.
> Limits: File size limit set to 26214400 bytes.
> Limits: Recursion level limit set to 10.
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml




More information about the clamav-users mailing list