source: trunk/server/docs/manpages/vfs_scannedonly.8@ 620

Last change on this file since 620 was 620, checked in by Herwig Bauernfeind, 14 years ago

Samba 3.5: Update trunk to 3.5.11

File size: 6.0 KB
RevLine 
[596]1'\" t
[429]2.\" Title: vfs_scannedonly
3.\" Author: [see the "AUTHOR" section]
[596]4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
[620]5.\" Date: 08/02/2011
[429]6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
[620]10.TH "VFS_SCANNEDONLY" "8" "08/02/2011" "Samba 3\&.5" "System Administration tools"
[429]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.\" -----------------------------------------------------------------
[596]21.SH "NAME"
[429]22vfs_scannedonly \- Ensures that only files that have been scanned for viruses are visible and accessible to the end user\&.
[596]23.SH "SYNOPSIS"
[429]24.HP \w'\ 'u
[596]25vfs objects = scannedonly
[429]26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(8)
30suite\&.
31.PP
32The
[596]33vfs_scannedonly
[429]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
[596]37\&.scanned:\&. The Samba module simply looks if such a
38\&.scanned:
[429]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
[596]44\&.virus:\&. Files with the
45\&.virus:
[429]46prefix are never shown to the user and all access is denied\&.
47.PP
48This module is stackable\&.
49.SH "CONFIGURATION"
50.PP
[596]51vfs_scannedonly
[429]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
[596]82Whether files that are not visible (\&.scanned:
[429]83files,
[596]84\&.failed:
[429]85files and
[596]86\&.virus:
[429]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
[596]103\&.scanned:
[429]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