]> git.pld-linux.org Git - packages/clamav.git/blob - clamav-pld_config.patch
- Made work as user clamav
[packages/clamav.git] / clamav-pld_config.patch
1 diff -urN clamav-0.60.orig/etc/clamav.conf clamav-0.60/etc/clamav.conf
2 --- clamav-0.60.orig/etc/clamav.conf    Thu Aug 28 14:14:08 2003
3 +++ clamav-0.60/etc/clamav.conf Thu Aug 28 14:15:09 2003
4 @@ -5,12 +5,12 @@
5   
6  
7  # Comment or remove the line below.
8 -Example
9 +# Example
10  
11  # Uncomment this option to enable logging.
12  # LogFile must be writable for the user running the daemon.
13  # Full path is required.
14 -#LogFile /tmp/clamd.log
15 +#LogFile /var/log/clamd.log
16  
17  # By default the log file is locked for writing - the lock protects against
18  # running clamd multiple times (if want to run another clamd, please
19 @@ -30,19 +30,20 @@
20  #LogTime
21  
22  # Use system logger (can work together with LogFile).
23 -#LogSyslog
24 +LogSyslog
25  
26  # Enable verbose logging.
27 -#LogVerbose
28 +# LogVerbose
29  
30  # This option allows you to save the process identifier of the listening
31  # daemon (main thread).
32 -#PidFile /var/run/clamd.pid
33 +# We use dir becouse covering clamd.pid file couse default rights are sane.
34 +PidFile /var/run/clamav/clamd.pid 
35  
36  # Path to a directory containing .db files.
37  # Default is the hardcoded directory (mostly /usr/local/share/clamav,
38  # it depends on installation options).
39 -#DataDirectory /var/lib/clamav
40 +DataDirectory /var/lib/clamav
41   
42  # The daemon works in local or network mode. Currently the local mode is
43  # recommended for security reasons.
44 @@ -50,7 +51,9 @@
45  # Path to the local socket. The daemon doesn't change the mode of the
46  # created file (portability reasons). You may want to create it in a directory
47  # which is only accessible for a user running daemon.
48 -LocalSocket /tmp/clamd
49 +# LocalSocket /var/run/clamav/clamd.socket
50 +
51 +LocalSocket /var/lib/clamav/clamd.socket
52  
53  # TCP port address.
54  #TCPSocket 3310
55 @@ -93,11 +96,11 @@
56  
57  # Run as selected user (clamd must be started by root).
58  # By default it doesn't drop privileges.
59 -#User clamav
60 +User clamav
61  
62  # Initialize the supplementary group access (for all groups in /etc/group
63  # user is added in. clamd must be started by root).
64 -#AllowSupplementaryGroups
65 +AllowSupplementaryGroups
66  
67  # Don't fork into background. Useful in debugging.
68  #Foreground
69 @@ -107,13 +110,12 @@
70  ##
71  
72  # Uncomment this option if you are planning to scan mail files.
73 -#ScanMail
74 +ScanMail
75  
76  ##
77  ## Archive support
78  ##
79  
80 -
81  # Comment this line to disable scanning of the archives.
82  ScanArchive
83  
This page took 0.040057 seconds and 4 git commands to generate.