1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_readonly.8">
6 <refentrytitle>vfs_readonly</refentrytitle>
7 <manvolnum>8</manvolnum>
12 <refname>vfs_readonly</refname>
13 <refpurpose>make a Samba share read only for a specified time period</refpurpose>
18 <command>vfs objects = readonly</command>
23 <title>DESCRIPTION</title>
25 <para>This VFS module is part of the
26 <citerefentry><refentrytitle>samba</refentrytitle>
27 <manvolnum>7</manvolnum></citerefentry> suite.</para>
29 <para>The <command>vfs_readonly</command> VFS module marks a share
30 as read only for all clients connecting within the configured
31 time period. Clients connecting during this time will be denied
32 write access to all files in the share, irrespective of ther
33 actual access privileges.</para>
35 <para>This module is stackable.</para>
41 <title>OPTIONS</title>
46 <term>readonly:period = BEGIN, END</term>
48 <para>Only mark the share as read only if the client
49 connection was made between the times marked by the
50 BEGIN and END date specifiers.
51 The syntax of these date specifiers is the
52 same as that accepted by the -d option of GNU
53 <citerefentry><refentrytitle>date</refentrytitle>
54 <manvolnum>1</manvolnum></citerefentry>.
64 <title>EXAMPLES</title>
66 <para>Mark all shares read only:</para>
68 <smbconfsection name="[global]"/>
69 <smbconfoption name="vfs objects">readonly</smbconfoption>
72 <para>Mark the [backup] share as read only during business hours:</para>
74 <smbconfsection name="[backup]"/>
75 <smbconfoption name="path">/readonly</smbconfoption>
76 <smbconfoption name="vfs objects">readonly</smbconfoption>
77 <smbconfoption name="readonly:period">readonly:period = "today 9:00","today 17:00"</smbconfoption>
82 <title>VERSION</title>
84 <para>This man page is correct for version 3.0.25 of the Samba suite.
91 <para>The original Samba software and related utilities
92 were created by Andrew Tridgell. Samba is now developed
93 by the Samba Team as an Open Source project similar
94 to the way the Linux kernel is developed.</para>