1 | '\" t
|
---|
2 | .\" Title: vfs_readonly
|
---|
3 | .\" Author: [see the "AUTHOR" section]
|
---|
4 | .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
---|
5 | .\" Date: 02/19/2010
|
---|
6 | .\" Manual: System Administration tools
|
---|
7 | .\" Source: Samba 3.5
|
---|
8 | .\" Language: English
|
---|
9 | .\"
|
---|
10 | .TH "VFS_READONLY" "8" "02/19/2010" "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"
|
---|
22 | vfs_readonly \- make a Samba share read only for a specified time period
|
---|
23 | .SH "SYNOPSIS"
|
---|
24 | .HP \w'\ 'u
|
---|
25 | vfs objects = readonly
|
---|
26 | .SH "DESCRIPTION"
|
---|
27 | .PP
|
---|
28 | This VFS module is part of the
|
---|
29 | \fBsamba\fR(7)
|
---|
30 | suite\&.
|
---|
31 | .PP
|
---|
32 | The
|
---|
33 | vfs_readonly
|
---|
34 | VFS module marks a share as read only for all clients connecting within the configured time period\&. Clients connecting during this time will be denied write access to all files in the share, irrespective of ther actual access privileges\&.
|
---|
35 | .PP
|
---|
36 | This module is stackable\&.
|
---|
37 | .SH "OPTIONS"
|
---|
38 | .PP
|
---|
39 | readonly:period = BEGIN, END
|
---|
40 | .RS 4
|
---|
41 | Only mark the share as read only if the client connection was made between the times marked by the BEGIN and END date specifiers\&. The syntax of these date specifiers is the same as that accepted by the \-d option of GNU
|
---|
42 | \fBdate\fR(1)\&.
|
---|
43 | .RE
|
---|
44 | .SH "EXAMPLES"
|
---|
45 | .PP
|
---|
46 | Mark all shares read only:
|
---|
47 | .sp
|
---|
48 | .if n \{\
|
---|
49 | .RS 4
|
---|
50 | .\}
|
---|
51 | .nf
|
---|
52 | \fI[global]\fR
|
---|
53 | \m[blue]\fBvfs objects = readonly\fR\m[]
|
---|
54 | .fi
|
---|
55 | .if n \{\
|
---|
56 | .RE
|
---|
57 | .\}
|
---|
58 | .PP
|
---|
59 | Mark the [backup] share as read only during business hours:
|
---|
60 | .sp
|
---|
61 | .if n \{\
|
---|
62 | .RS 4
|
---|
63 | .\}
|
---|
64 | .nf
|
---|
65 | \fI[backup]\fR
|
---|
66 | \m[blue]\fBpath = /readonly\fR\m[]
|
---|
67 | \m[blue]\fBvfs objects = readonly\fR\m[]
|
---|
68 | \m[blue]\fBreadonly:period = readonly:period = "today 9:00","today 17:00"\fR\m[]
|
---|
69 | .fi
|
---|
70 | .if n \{\
|
---|
71 | .RE
|
---|
72 | .\}
|
---|
73 | .SH "VERSION"
|
---|
74 | .PP
|
---|
75 | This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
|
---|
76 | .SH "AUTHOR"
|
---|
77 | .PP
|
---|
78 | The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
---|