Title: vfs_readonly Author: [see the "AUTHOR" section] Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> Date: 09/21/2017 Manual: System Administration tools Source: Samba 4.6 Language: English
NAMEvfs_readonly - make a Samba share read only for a specified time period
- vfs objects = readonly
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.
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).
Mark all shares read only:
[global] m[blue]vfs objects = readonlym
Mark the [backup] share as read only during business hours:
[backup] m[blue]path = /readonlym m[blue]vfs objects = readonlym m[blue]readonly:period = readonly:period = "today 9:00","today 17:00"m
This man page is correct for version 3.0.25 of the Samba suite.
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.