source: branches/samba-3.5.x/docs/manpages/vfs_scannedonly.8

Last change on this file was 773, checked in by Herwig Bauernfeind, 12 years ago

Samba Server 3.5: Update branch to 3.5.20

File size: 6.0 KB
Line 
1'\" t
2.\" Title: vfs_scannedonly
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 12/14/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "VFS_SCANNEDONLY" "8" "12/14/2012" "Samba 3\&.5" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22vfs_scannedonly \- Ensures that only files that have been scanned for viruses are visible and accessible to the end user\&.
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = scannedonly
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(8)
30suite\&.
31.PP
32The
33vfs_scannedonly
34VFS module ensures that only files that have been scanned for viruses are visible and accessible to the end user\&. If non\-scanned files are found an anti\-virus scanning daemon is notified\&. The anti\-virus scanning daemon is not part of the Samba suite\&.
35.PP
36Scannedonly comes in two parts: a samba vfs module and (one or more) daemons\&. The daemon scans files\&. If a certain file is clean, a second file is created with prefix
37\&.scanned:\&. The Samba module simply looks if such a
38\&.scanned:
39file exists, and is newer than the pertinent file\&. If this is the case, the file is shown to the user\&. If this is not the case, the file is not returned in a directory listing (configurable), and cannot be opened (configurable)\&. The Samba vfs module will notify the daemon to scan this file\&.
40.PP
41So what happens for the user in the default configuration\&. The first time a directory is listed, it shows files as \'file is being scanned for viruses, but after the first time all files are shown\&. There is a utility scannedonly_prescan that can help you to prescan all directories\&. When new files are written the daemon is notified immediately after the file is complete\&.
42.PP
43If a virus is found by the daemon, a file with a warning message is created in the directory of the user, a warning is sent to the logs, and the file is renamed to have prefix
44\&.virus:\&. Files with the
45\&.virus:
46prefix are never shown to the user and all access is denied\&.
47.PP
48This module is stackable\&.
49.SH "CONFIGURATION"
50.PP
51vfs_scannedonly
52relies on a anti\-virus scanning daemon that listens on the scannedonly socket (unix domain socket or UDP socket)\&.
53.SH "OPTIONS"
54.PP
55scannedonly:domain_socket = True
56.RS 4
57Whether to use a unix domain socket or not (false reverts to use udp)
58.RE
59.PP
60scannedonly:socketname = /var/lib/scannedonly/scan
61.RS 4
62The location of the unix domain socket to connect to
63.RE
64.PP
65scannedonly:portnum = 2020
66.RS 4
67The udp port number to connect to
68.RE
69.PP
70scannedonly:scanhost = localhost
71.RS 4
72When using UDP the host that runs the scanning daemon (this host needs access to the files!)
73.RE
74.PP
75scannedonly:show_special_files = True
76.RS 4
77Whether sockets, devices and fifo\'s (all not scanned for viruses) should be visible to the user
78.RE
79.PP
80scannedonly:rm_hidden_files_on_rmdir = True
81.RS 4
82Whether files that are not visible (\&.scanned:
83files,
84\&.failed:
85files and
86\&.virus:
87files) should be deleted if the user tries to remove the directory\&. If false, the user will get the "directory is not empty" error\&.
88.RE
89.PP
90scannedonly:hide_nonscanned_files = True
91.RS 4
92If false, all non\-scanned files are visible in directory listings\&. If such files are found in a directory listing the scanning daemon is notified that scanning is required\&. Access to non\-scanned files is still denied (see scannedonly:allow_nonscanned_files)\&.
93.RE
94.PP
95scannedonly:scanning_message = is being scanned for viruses
96.RS 4
97If non\-scanned files are hidden (if scannedonly:hide_nonscanned_files = True), a fake 0 byte file is shown\&. The filename is the original filename with the message as suffix\&.
98.RE
99.PP
100scannedonly:recheck_time_open = 50
101.RS 4
102If a non\-scanned file is opened, the vfs module will wait recheck_tries_open times for recheck_time_open milliseconds for the scanning daemon to create a
103\&.scanned:
104file\&. For small files that are scanned by the daemon within the time (tries * time) the behavior will be just like on\-access scanning\&.
105.RE
106.PP
107scannedonly:recheck_tries_open = 100
108.RS 4
109See recheck_time_open\&.
110.RE
111.PP
112scannedonly:recheck_time_readdir = 50
113.RS 4
114If a non\-scanned file is in a directory listing the vfs module notifies the daemon (once for all files that need scanning in that directory), and waits recheck_tries_readdir times for recheck_time_readdir milliseconds\&. Only used when hide_nonscanned_files is false\&.
115.RE
116.PP
117scannedonly:recheck_tries_readdir = 20
118.RS 4
119See recheck_time_readdir\&.
120.RE
121.PP
122scannedonly:allow_nonscanned_files = False
123.RS 4
124Allow access to non\-scanned files\&. The daemon is notified, however, and special files such as
125\&.scanned:
126files\&.
127\&.virus:
128files and
129\&.failed:
130files are not listed\&.
131.RE
132.SH "EXAMPLES"
133.PP
134Enable anti\-virus scanning:
135.sp
136.if n \{\
137.RS 4
138.\}
139.nf
140 \fI[homes]\fR
141 \m[blue]\fBvfs objects = scannedonly\fR\m[]
142 \m[blue]\fBscannedonly:hide_nonscanned_files = False\fR\m[]
143.fi
144.if n \{\
145.RE
146.\}
147.SH "CAVEATS"
148.PP
149This is not true on\-access scanning\&. However, it is very fast for files that have been scanned already\&.
150.SH "VERSION"
151.PP
152This man page is correct for version 3\&.5\&.0 of the Samba suite\&.
153.SH "AUTHOR"
154.PP
155The original Samba software and related utilities were created by Andrew Tridgell\&. Scannedonly was developed for Samba by Olivier Sessink\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
Note: See TracBrowser for help on using the repository browser.