Browse code

new manual pages

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@929 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/09/26 10:28:55
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
0
+.\" Manual page created by Tomasz Kojm, 20020929
1
+.TH "Clam Daemon" "8" "November 11, 2003" "Tomasz Kojm" "Clam AntiVirus"
2
+.SH "NAME"
3
+.LP 
4
+clamd \- an anti\-virus daemon
5
+.SH "SYNOPSIS"
6
+.LP 
7
+clamd [options]
8
+.SH "DESCRIPTION"
9
+.LP 
10
+The daemon listens for incoming connections on Unix or TCP socket and scans files or directories on demand. It's a part of the Clam AntiVirus package. It reads its configuration information from a clamd.conf file. It provides on\-access scanning feature (clamuko) under Linux.
11
+.SH "COMMANDS"
12
+.LP 
13
+clamd recognizes the following commands:
14
+.TP 
15
+\fBPING\fR
16
+Check the server's state. It should reply with "PONG".
17
+.TP 
18
+\fBVERSION\fR
19
+Print a version information.
20
+.TP 
21
+\fBRELOAD\fR
22
+Reload the virus databases.
23
+.TP 
24
+\fBQUIT\fR
25
+Perform a clean exit.
26
+.TP 
27
+\fBSCAN file/directory\fR
28
+Scan a file or directory (recursively) with archive support enabled (if not disabled in clamd.conf). A full path is required.
29
+.TP 
30
+\fBRAWSCAN file/directory\fR
31
+Scan a file or directory (recursively) with archive support disabled. A full path is required.
32
+.TP 
33
+\fBCONTSCAN file/directory\fR
34
+Scan a file or directory (recursively) with archive support enabled and continue scanning even when virus is found. A full path is required.
35
+.TP 
36
+\fBSTREAM\fR
37
+Scan stream \- on this command clamd will return "PORT number" and you can connect to that port and send a data to scan.
38
+.SH "OPTIONS"
39
+.LP 
40
+
41
+.TP 
42
+\fB\-h, \-\-help\fR
43
+Output help information and exit.
44
+.TP 
45
+\fB\-V, \-\-version\fR
46
+Print the version number and exit.
47
+.TP 
48
+\fB\-c FILE, \-\-config\-file=FILE\fR
49
+Read configuration from FILE.
50
+.SH "FILES"
51
+.LP 
52
+@CFGDIR@/clamd.conf
53
+.SH "CREDITS"
54
+Please check the full documentation for credits.
55
+.SH "AUTHOR"
56
+.LP 
57
+Tomasz Kojm <tkojm@clamav.net>
58
+.SH "SEE ALSO"
59
+.LP 
60
+clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamd.conf(5), clamav\-milter(8)
0 61
new file mode 100644
... ...
@@ -0,0 +1,283 @@
0
+.\" Manual page created by Tomasz Kojm, 20021001.
1
+.TH "clamd.conf" "5" "September 2, 2004" "Tomasz Kojm" "Clam AntiVirus"
2
+.SH "NAME"
3
+.LP 
4
+\fBclamd.conf\fR \- a configuration file for Clam AntiVirus Daemon
5
+.SH "DESCRIPTION"
6
+.LP 
7
+clamd.conf configures the Clam AntiVirus daemon, clamd(8).
8
+.SH "FILE FORMAT"
9
+The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
10
+.TP 
11
+\fBSTRING\fR
12
+String without blank characters.
13
+.TP 
14
+\fBSIZE\fR
15
+Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
16
+.TP 
17
+\fBNUMBER\fR
18
+Unsigned integer.
19
+.SH "DIRECTIVES"
20
+.LP 
21
+When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
22
+.TP 
23
+\fBExample\fR
24
+If this option is set clamd will not run.
25
+.TP 
26
+\fBLogFile STRING\fR
27
+Enable logging to selected file.
28
+.br 
29
+Default: disabled.
30
+.TP 
31
+\fBLogFileUnlock\fR
32
+Disable a system lock that protects against running clamd with a same configuration file multiple times.
33
+.br 
34
+Default: disabled.
35
+.TP 
36
+\fBLogFileMaxSize SIZE\fR
37
+Limit a size of a log file. The logger will be automatically disabled  if the file is greater than SIZE. Value of 0 disables the limit.
38
+.br 
39
+Default: 1M
40
+.TP 
41
+\fBLogTime\fR
42
+Log time with each message.
43
+.br 
44
+Default: disabled.
45
+.TP 
46
+\fBLogClean\fR
47
+Log clean files.
48
+.br 
49
+Default: disabled.
50
+.TP 
51
+\fBLogSyslog\fR
52
+Use system logger (can work together with LogFile).
53
+.br 
54
+Default: disabled.
55
+.TP 
56
+\fBLogVerbose\fR
57
+Enable verbose logging.
58
+.br 
59
+Default: disabled.
60
+.TP 
61
+\fBPidFile STRING\fR
62
+Save a process identifier of a listening daemon (main thread) to a specified file.
63
+.br 
64
+Default: disabled.
65
+.TP 
66
+\fBDatabaseDirectory STRING\fR
67
+Path to a directory containing database files.
68
+.br 
69
+Default: hardcoded directory.
70
+.TP 
71
+\fBLocalSocket STRING\fR
72
+Path to a local (Unix) socket the daemon will listen on.
73
+.br 
74
+Default: disabled.
75
+.TP 
76
+\fBFixStaleSocket\fR
77
+Remove stale socket after unclean shutdown.
78
+.br 
79
+Default: disabled.
80
+.TP 
81
+\fBTCPSocket NUMBER\fR
82
+TCP port number the daemon will listen on.
83
+.br 
84
+Default: disabled.
85
+.TP 
86
+\fBTCPAddr STRING\fR
87
+TCP address to bind to. By default clamd binds to INADDR_ANY.
88
+.br 
89
+Default: disabled.
90
+.TP 
91
+\fBMaxConnectionQueueLength NUMBER\fR
92
+Maximum length the queue of pending connections may grow to.
93
+.br 
94
+Default: 15
95
+.TP 
96
+\fBMaxThreads NUMBER\fR
97
+Maximal number of threads running at the same time.
98
+.br 
99
+Default: 5.
100
+.TP 
101
+\fBThreadTimeout NUMBER\fR
102
+Stop thread\-scanner after specified time (in seconds). Value of 0 disables the timeout.
103
+.br 
104
+Default: 180
105
+.TP 
106
+\fBMaxDirectoryRecursion NUMBER\fR
107
+Maximal depth a directories are scanned at.
108
+.br 
109
+Default: disabled.
110
+.TP 
111
+\fBFollowDirectorySymlinks\fR
112
+Follow a directory symlinks. You should have enabled directory recursion limit to avoid a potential problems.
113
+.br 
114
+Default: disabled.
115
+.TP 
116
+\fBFollowFileSymlinks\fR
117
+Follow regular file symlinks.
118
+.br 
119
+Default: disabled.
120
+.TP 
121
+\fBSelfCheck NUMBER\fR
122
+Do internal checks every NUMBER seconds.
123
+.br 
124
+Default: 3600
125
+.TP 
126
+\fBVirusEvent COMMAND\fR
127
+Execute the COMMAND when virus is found. In the command string %v will be replaced by a virus name.
128
+\fR
129
+.br 
130
+Default: disabled.
131
+.TP 
132
+\fBUser STRING\fR
133
+Drop priviledges to a selected user.
134
+.br 
135
+Default: disabled.
136
+.TP 
137
+\fBAllowSupplementaryGroups\fR
138
+When started by root and the User option is activated, it will initialize all the groups from /etc/group for which user is a member.
139
+.br 
140
+Default: disabled.
141
+.TP 
142
+\fBForeground\fR
143
+Don't fork into background. Useful in debugging.
144
+.br 
145
+Default: disabled.
146
+.TP 
147
+\fBDebug\fR
148
+Enable debug messages from libclamav. You need to enable the \fBForeground\fR option to see them.
149
+.TP 
150
+\fBStreamSaveToDisk\fR
151
+When activated the input stream (see STREAM command) will be saved to disk before scanning \- this allows scanning within archives.
152
+.br 
153
+Default: disabled.
154
+.TP 
155
+\fBStreamMaxLength SIZE\fR
156
+Close the connection when this limit is exceeded.
157
+.br 
158
+Default: disabled.
159
+.TP 
160
+\fBScanPE\fR
161
+PE stands for Portable Executable \- it's an executable file format used in all 32\-bit versions of Windows operating systems. This option allows ClamAV to perform a deeper analysis of executable files and it's also required for decompression of popular executable packers such as UPX.
162
+.br 
163
+Default: enabled.
164
+.TP 
165
+\fBDetectBrokenExecutables\fR
166
+With this option clamav will try to detect broken executables and mark them as Broken.Executable.
167
+.br 
168
+Default: disabled.
169
+.TP 
170
+\fBScanOLE2\fR
171
+Enables scanning of Microsoft Office document macros.
172
+.br 
173
+Default: enabled.
174
+.TP 
175
+\fBScanHTML\fR
176
+Enables HTML detection and normalisation.
177
+.br 
178
+Default: enabled.
179
+.TP 
180
+\fBScanMail\fR
181
+Enable scanning of mail files.
182
+.br 
183
+Default: enabled.
184
+.TP 
185
+\fBMailFollowURLs\fR
186
+If an email contains URLs ClamAV can download and scan them. \fBWARNING: This option may open your system to a DoS attack. Never use it on loaded servers.\fR
187
+.br 
188
+Default: disabled.
189
+.TP 
190
+\fBScanArchive\fR
191
+Enable archive scanning.
192
+.br 
193
+Default: disabled.
194
+.TP 
195
+\fBScanRAR\fR
196
+The built\-in RAR unpacker is disabled by default because the code leaks.
197
+.br 
198
+Default: disabled.
199
+.TP 
200
+\fBArchiveMaxFileSize SIZE\fR
201
+Files in archives larger than this limit won't be scanned. Value of 0 disables the limit.
202
+.br 
203
+Default: 10M
204
+.TP 
205
+\fBArchiveMaxRecursion NUMBER\fR
206
+Limit archive recursion level. Value of 0 disables the limit.
207
+.br 
208
+Default: 5
209
+.TP 
210
+\fBArchiveMaxFiles NUMBER\fR
211
+Number of files to be scanned within archive. Value of 0 disables the limit.
212
+.br 
213
+Default: 1000
214
+.TP 
215
+\fBArchiveMaxCompressionRatio NUMBER\fR
216
+Analyze compression ratio and mark potential archive bombs as viruses (0 disables the limit).
217
+.br 
218
+Default: 200
219
+.TP 
220
+\fBArchiveLimitMemoryUsage\fR
221
+Use slower decompression algorithm which uses less memory. This option affects bzip2 decompressor only.
222
+.br 
223
+Default: disabled
224
+.TP 
225
+\fBArchiveBlockEncrypted\fR
226
+Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
227
+.br 
228
+Default: disabled
229
+.TP 
230
+\fBArchiveBlockMax\fR
231
+Mark archives as viruses if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is reached.
232
+.br 
233
+Default: disabled
234
+.TP 
235
+\fBClamukoScanOnLine\fR
236
+Enable Clamuko \- on\-access scanner for Linux. Dazuko must be already running.
237
+.br 
238
+Default: disabled.
239
+.TP 
240
+\fBClamukoScanOnOpen\fR
241
+Scan a file on open.
242
+.br 
243
+Default: disabled.
244
+.TP 
245
+\fBClamukoScanOnClose\fR
246
+Scan a file on close.
247
+.br 
248
+Default: disabled.
249
+.TP 
250
+\fBClamukoScanOnExec\fR
251
+Scan a file on execute.
252
+.br 
253
+Default: disabled.
254
+.TP 
255
+\fBClamukoIncludePath STRING\fR
256
+Set the include paths (all files and directories in them will be scanned). You can have multiple ClamukoIncludePath options but each directory must be added with a seperate option.
257
+.br 
258
+Default: disabled. Required.
259
+.TP 
260
+\fBClamukoExcludePath\fR
261
+Set the exclude paths. All subdirectories are also excluded.
262
+.br 
263
+Default: disabled.
264
+.TP 
265
+\fBClamukoMaxFileSize SIZE\fR
266
+Don't scan files larger than SIZE.
267
+.br 
268
+Default: 5M
269
+.TP 
270
+\fBClamukoScanArchive\fR
271
+Enable archive scanning. It uses ArchiveMax* limits.
272
+.br 
273
+Default: disabled.
274
+.SH "FILES"
275
+.LP 
276
+@CFGDIR@/clamd.conf
277
+.SH "AUTHOR"
278
+.LP 
279
+Tomasz Kojm <tkojm@clamav.net>
280
+.SH "SEE ALSO"
281
+.LP 
282
+clamd(8), clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamav\-milter(8)
0 283
new file mode 100644
... ...
@@ -0,0 +1,114 @@
0
+.\" Manual page created by Tomasz Kojm, 20020415
1
+.TH "freshclam" "1" "September 1, 2004" "Tomasz Kojm" "Clam AntiVirus"
2
+.SH "NAME"
3
+.LP 
4
+freshclam \- update virus databases
5
+.SH "SYNOPSIS"
6
+.LP 
7
+freshclam [options]
8
+.SH "DESCRIPTION"
9
+.LP 
10
+freshclam updates the virus database. It's a part of the Clam AntiVirus package. It requires an Internet connection.
11
+.SH "OPTIONS"
12
+.LP 
13
+Freshclam reads its configuration from freshclam.conf. The settings can be overwritten with command line options.
14
+.TP 
15
+\fB\-h, \-\-help\fR
16
+Output help information and exit.
17
+.TP 
18
+\fB\-V, \-\-version\fR
19
+Print version number and exit.
20
+.TP 
21
+\fB\-v, \-\-verbose\fR
22
+Be verbose. This option causes freshclam to print many additional informations.
23
+.TP 
24
+\fB\-\-quiet\fR
25
+Be quiet \- output only error messages.
26
+.TP 
27
+\fB\-\-stdout\fR
28
+Write all messages to the standard output (stdout), instead of the standard error output (stderr).
29
+.TP 
30
+\fB\-l FILE, \-\-log=FILE\fR
31
+Save download report in FILE.
32
+.TP 
33
+\fB\-\-datadir=DIRECTORY\fR
34
+Install new database in DIRECTORY. The directory must be writeable for the 'clamav' user or unprivileged user running freshclam.
35
+.TP 
36
+\fB\-u USER, \-\-user USER\fR
37
+Run as USER. By default (when started by root) freshclam drops privileges and works as the 'clamav' user.
38
+.TP 
39
+\fB\-d, \-\-daemon\fR
40
+Run in a daemon mode. This option requires \-\-checks.
41
+.TP 
42
+\fB\-p FILE, \-\-pid=FILE\fR
43
+Save daemon's pid in FILE.
44
+.TP 
45
+\fB\-\-no\-dns\fR
46
+This option forces old non\-DNS verification method (without a TTL delay).
47
+.TP 
48
+\fB\-c #n, \-\-checks=#n\fR
49
+Check #n times per day for a new database. #n must be between 1 and 50.
50
+.TP 
51
+\fB\-\-daemon\-notify=/path/to/clamd.conf\fR
52
+Notify the daemon about the new database. By default it reads a hardcoded config file but you can use an another one. Both local and TCP sockets are supported.
53
+.TP 
54
+\fB\-\-on\-error\-execute=COMMAND\fR
55
+Execute COMMAND if error occured. Remeber, that virus database freshness is the most important thing in anti\-virus system. With this option freshclam can alert you (eg. send SMS) when something is going wrong.
56
+.TP 
57
+\fB\-\-on\-update\-execute=COMMAND\fR
58
+Execute COMMAND after succesful update.
59
+.SH "EXAMPLES"
60
+.LP 
61
+.TP 
62
+(0) Download database to default directory:
63
+
64
+\fBfreshclam\fR
65
+.TP 
66
+(1) Download database to current directory:
67
+
68
+\fBfreshclam \-\-datadir=.\fR
69
+.TP 
70
+(2) Run as a daemon and check 2 times per day for new database:
71
+
72
+\fBfreshclam \-d \-c 2\fR
73
+.SH "RETURN CODES"
74
+0 : Database succesfully updated.
75
+.TP 
76
+1 : Database is up\-to\-date.
77
+.TP 
78
+40: Unknown option passed.
79
+.TP 
80
+50: Can't change directory.
81
+.TP 
82
+51: Can't check MD5 sum.
83
+.TP 
84
+52: Connection (network) problem.
85
+.TP 
86
+53: Can't unlink a file.
87
+.TP 
88
+54: MD5 or digital signature verification error.
89
+.TP 
90
+55: Error reading file.
91
+.TP 
92
+56: Config file error.
93
+.TP 
94
+57: Can't create a new file.
95
+.TP 
96
+58: Can't read database from remote server.
97
+.TP 
98
+59: Mirrors are not fully synchronized (try again later).
99
+.TP 
100
+60: Can't get information about clamav user from /etc/passwd.
101
+.TP 
102
+61: Can't drop privileges.
103
+.SH "FILES"
104
+.LP 
105
+@CFGDIR@/freshclam.conf
106
+.SH "CREDITS"
107
+Please check the full documentation for credits.
108
+.SH "AUTHOR"
109
+.LP 
110
+Tomasz Kojm <tkojm@clamav.net>
111
+.SH "SEE ALSO"
112
+.LP 
113
+clamd(8), clamdscan(1), clamscan(1), sigtool(1), clamd.conf(5)
0 114
new file mode 100644
... ...
@@ -0,0 +1,92 @@
0
+.\" Manual page created by Magnus Ekdahl and Thomas Lamy
1
+.TH "freshclam.conf" "5" "September 2, 2004" "Thomas Lamy" "Clam AntiVirus"
2
+.SH "NAME"
3
+.LP 
4
+\fBfreshclam.conf\fR \- Configuration file for Clam AntiVirus Database Updater
5
+.SH "DESCRIPTION"
6
+.LP 
7
+The file freshclam.conf configures the Clam AntiVirus Database Updater, freshclam(1).
8
+.SH "FILE FORMAT"
9
+The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
10
+.TP 
11
+\fBSTRING\fR
12
+String without blank characters.
13
+.TP 
14
+\fBSIZE\fR
15
+Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
16
+.TP 
17
+\fBNUMBER\fR
18
+Unsigned integer.
19
+.SH "DIRECTIVES"
20
+.LP 
21
+When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
22
+.TP 
23
+\fBExample\fR
24
+If this option is set clamd will not run.
25
+.TP 
26
+\fBDatabaseOwner STRING\fR
27
+When started by root, drop privileges to a specified user. Default is \"clamav\".
28
+.TP 
29
+\fBDatabaseDirectory STRING\fR
30
+Path to a directory containing database files.
31
+.br 
32
+Default: hardcoded directory
33
+.TP 
34
+\fBChecks NUM\fR
35
+Number of database checks per day. 12 is the recommended number.
36
+.TP 
37
+\fBUpdateLogFile STRING\fR
38
+Enable logging to a specified file. Highly recommended.
39
+.br 
40
+Default: disabled.
41
+.TP 
42
+\fBLogSyslog\fR
43
+Enable logging to Syslog.  May be used in combination with UpdateLogFile
44
+.br 
45
+Default: disabled.
46
+.TP 
47
+\fBLogVerbose\fR
48
+Enable verbose logging.
49
+.TP 
50
+\fBDatabaseMirror STRING\fR
51
+Server name where database updates are downloaded from. The default is database.clamav.net, which points to all official mirrors.
52
+.br .
53
+If this option is given multiple times, freshclam(1) tries them in the order given if one download fails.
54
+.br 
55
+There is no default, which results in an error when running freshclam(1).
56
+.TP 
57
+\fBMaxAttempts NUM\fR
58
+Freshclam(1) tries every mirror this number of times before switching to the next mirror.
59
+.br .
60
+Default is to try once per mirror.
61
+.TP 
62
+\fBHTTPProxyServer STR\fR, \fBHTTPProxyPort NUM\fR
63
+Use given proxy server and TCP port for database downloads.
64
+.TP 
65
+\fBHTTPProxyUsername STR\fR,\fBHTTPProxyPassword STR\fR
66
+Proxy usage is authenticated through given username and password.
67
+.br .
68
+Default: no proxy authentication
69
+.TP 
70
+\fBNotifyClamd \[STRING\]\fR
71
+Notify a running clamd(8) to reload it\'s database after a download has occured. Optionally a clamd.conf(5) file location may be given to tell freshclam(1) how to communicate with clamd(8).
72
+.br .
73
+The default is to not notify clamd. See clamd.conf(5)\'s option SelfCheck for how clamd(8) handles database updates in this case.
74
+.TP 
75
+\fBOnUpdateExecute STRING\fR
76
+Execute this command after the database has been successfully updated.
77
+.TP 
78
+\fBOnErrorExecute\fR
79
+Execute this command after a database update has failed.
80
+.SH "NOTE"
81
+While not reasonable, any configuration option from clamd.conf(5) may be given.
82
+.SH "FILES"
83
+.LP 
84
+@CFGDIR@/freshclam.conf
85
+.SH "AUTHOR"
86
+.LP 
87
+Thomas Lamy <thomas.lamy@netwake.de>
88
+.SH "SEE ALSO"
89
+.LP 
90
+freshclam(1), clamd.conf(5), clamd(8), clamscan(1)
91
+