vfs_readonly8
Make a samba share read only for a specified time period
Usage
vfs objects
=
readonly
Overview
This VFS module is part of the samba(7) suite.
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 their actual access privileges.
This module is stackable.
Options
readonly:period = BEGIN, END
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 date(1).
Examples
Mark all shares read only:
[global] vfs objects = readonly
Mark the [backup] share as read only during business hours:
[backup] path = /readonly vfs objects = readonly readonly:period = readonly:period = "today 9:00","today 17:00"
Version
This man page is part of version 4.25.1 of the Samba suite.
Releases
7 releases since Debian 8 (Jessie); the text changed 6 times.