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="smb-vfs-readonly.8">
6 <refentrytitle>smb-vfs-readonly</refentrytitle>
7 <manvolnum>8</manvolnum>
12 <refname>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 module is part of the <citerefentry><refentrytitle>samba</refentrytitle>
26 <manvolnum>7</manvolnum></citerefentry> suite.</para>
28 <para>The <command>readonly</command> VFS module marks a share
29 as read only for all clients connecting within the configured
30 time period. Clients connecting during this time will be denied
31 write access to all files in the share, irrespective of ther
32 actual access privileges.</para>
34 <para>This module is stackable.</para>
40 <title>OPTIONS</title>
45 <term>readonly:period = BEGIN, END</term>
47 <para>Only mark the share as read only if the client
48 connection was made between the times marked by the
49 BEGIN and END date specifiers.
50 The syntax of these date specifiers is the
51 same as that accepted by the -d option of GNU
52 <citerefentry><refentrytitle>date</refentrytitle>
53 <manvolnum>1</manvolnum></citerefentry>.
63 <title>EXAMPLES</title>
65 <para>Mark all shares read only:</para>
67 <smbconfsection name="[global]"/>
68 <smbconfoption name="vfs objects">readonly</smbconfoption>
71 <para>Mark the [backup] share as read only during business hours:</para>
73 <smbconfsection name="[backup]"/>
74 <smbconfoption name="path">/readonly</smbconfoption>
75 <smbconfoption name="vfs objects">readonly</smbconfoption>
76 <smbconfoption name="readonly:period">readonly:period = "today 9:00","today 17:00"</smbconfoption>
81 <title>VERSION</title>
83 <para>This man page is correct for version 3.0.25 of the Samba suite.
90 <para>The original Samba software and related utilities
91 were created by Andrew Tridgell. Samba is now developed
92 by the Samba Team as an Open Source project similar
93 to the way the Linux kernel is developed.</para>