vfs_readonly.8   [plain text]


.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "VFS_READONLY" 8 "" "" ""
.SH "NAME"
vfs_readonly - make a Samba share read only for a specified time period
.SH "SYNOPSIS"
.HP 1
vfs objects = readonly
.SH "DESCRIPTION"
.PP
This VFS module is part of the
\fBsamba\fR(7)
suite.
.PP
The
vfs_readonly
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.
.PP
This module is stackable.
.SH "OPTIONS"
.PP
readonly:period = BEGIN, END
.RS 3n
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
\fBdate\fR(1).
.RE
.SH "EXAMPLES"
.PP
Mark all shares read only:

.nf

        \fI[global]\fR
	vfs objects = readonly

.fi
.PP
Mark the [backup] share as read only during business hours:

.nf

        \fI[backup]\fR
	path = /readonly
	vfs objects = readonly
	readonly:period = readonly:period = "today 9:00","today 17:00"

.fi
.SH "VERSION"
.PP
This man page is correct for version 3.0.25 of the Samba suite.
.SH "AUTHOR"
.PP
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.