--- etc/clamd.conf +++ etc/clamd.conf @@ -3,15 +3,11 @@ ## Please read the clamd.conf(5) manual before editing this file. ## - -# Comment or remove the line below. -Example - # Uncomment this option to enable logging. # LogFile must be writable for the user running daemon. # A full path is required. # Default: disabled -#LogFile /tmp/clamd.log +#LogFile /var/log/clamd # By default the log file is locked for writing - the lock protects against # running clamd multiple times (if want to run another clamd, please @@ -40,12 +36,12 @@ # Use system logger (can work together with LogFile). # Default: disabled -#LogSyslog +LogSyslog # Specify the type of syslog messages - please refer to 'man syslog' # for facility names. # Default: LOG_LOCAL6 -#LogFacility LOG_MAIL +LogFacility LOG_MAIL # Enable verbose logging. # Default: disabled @@ -54,7 +50,7 @@ # This option allows you to save a process identifier of the listening # daemon (main thread). # Default: disabled -#PidFile /var/run/clamd.pid +PidFile /var/lib/clamav/clamd.pid # Optional path to the global temporary directory. # Default: system specific (usually /tmp or /var/tmp). @@ -69,7 +65,7 @@ # Path to a local socket file the daemon will listen on. # Default: disabled -LocalSocket /tmp/clamd +#LocalSocket /var/lib/clamav/clamd-socket # Remove stale socket after unclean shutdown. # Default: disabled @@ -77,14 +73,14 @@ # TCP port address. # Default: disabled -#TCPSocket 3310 +TCPSocket 3310 # TCP address. # By default we bind to INADDR_ANY, probably not wise. # Enable the following to provide some degree of protection # from the outside world. # Default: disabled -#TCPAddr 127.0.0.1 +TCPAddr 127.0.0.1 # Maximum length the queue of pending connections may grow to. # Default: 15 @@ -141,7 +137,7 @@ # Run as a selected user (clamd must be started by root). # Default: disabled -#User clamav +User vscan # Initialize supplementary group access (clamd must be started by root). # Default: disabled @@ -152,7 +148,7 @@ # Don't fork into background. # Default: disabled -#Foreground +Foreground # Enable debug messages in libclamav. # Default: disabled --- etc/freshclam.conf +++ etc/freshclam.conf @@ -4,10 +4,6 @@ ## This file may be optionally merged with clamd.conf. ## - -# Comment or remove the line below. -Example - # Path to the database directory. # WARNING: It must match clamd.conf's directive! # Default: hardcoded (depends on installation options) @@ -23,21 +19,21 @@ # Use system logger (can work together with UpdateLogFile). # Default: disabled -#LogSyslog +LogSyslog # Specify the type of syslog messages - please refer to 'man syslog' # for facility names. # Default: LOG_LOCAL6 -#LogFacility LOG_MAIL +LogFacility LOG_MAIL # This option allows you to save the process identifier of the daemon # Default: disabled -#PidFile /var/run/freshclam.pid +PidFile /var/lib/clamav/freshclam.pid # By default when started freshclam drops privileges and switches to the # "clamav" user. This directive allows you to change the database owner. # Default: clamav (may depend on installation options) -#DatabaseOwner clamav +DatabaseOwner vscan # Initialize supplementary group access (freshclam must be started by root). # Default: disabled @@ -82,7 +78,7 @@ # Send the RELOAD command to clamd. # Default: disabled -#NotifyClamd +NotifyClamd # By default it uses the hardcoded configuration file but you can force an # another one. #NotifyClamd /config/file/path