1VFS_READONLY(8) VFS_READONLY(8)
2
3
4
6 vfs_readonly - make a Samba share read only for a specified time period
7
9 vfs objects = readonly
10
12 This VFS module is part of the samba(7) suite.
13
14 The vfs_readonly VFS module marks a share as read only for all clients
15 connecting within the configured time period. Clients connecting during
16 this time will be denied write access to all files in the share, irre‐
17 spective of ther actual access privileges.
18
19 This module is stackable.
20
22 readonly:period = BEGIN, END
23 Only mark the share as read only if the client connection was made
24 between the times marked by the BEGIN and END date specifiers. The
25 syntax of these date specifiers is the same as that accepted by the
26 -d option of GNU date(1).
27
29 Mark all shares read only:
30
31
32 [global]
33 vfs objects = readonly
34
35
36 Mark the [backup] share as read only during business hours:
37
38
39 [backup]
40 path = /readonly
41 vfs objects = readonly
42 readonly:period = readonly:period = "today 9:00","today 17:00"
43
44
46 This man page is correct for version 3.0.25 of the Samba suite.
47
49 The original Samba software and related utilities were created by
50 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
51 Source project similar to the way the Linux kernel is developed.
52
53
54
55
56 VFS_READONLY(8)