1VFS_READONLY(8) System Administration tools 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,
17 irrespective of their 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 [global]
32 vfs objects = readonly
33
34 Mark the [backup] share as read only during business hours:
35
36 [backup]
37 path = /readonly
38 vfs objects = readonly
39 readonly:period = readonly:period = "today 9:00","today 17:00"
40
42 This man page is part of version 4.13.7 of the Samba suite.
43
45 The original Samba software and related utilities were created by
46 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
47 Source project similar to the way the Linux kernel is developed.
48
49
50
51Samba 4.13.7 03/25/2021 VFS_READONLY(8)