VFS_READONLY(8)
π VFS_READONLY π
okay so bestie, this one is a manual page for the vfs_readonly module β it's filed under System Administration tools, and no cap, it's about to be your new fave for locking a Samba share down on a schedule β¨
πΈ NAME πΈ
vfs_readonly β make a Samba share read only for a specified time period π
β¨ SYNOPSIS β¨
vfs objects = readonly
π¦ DESCRIPTION π¦
This VFS module is literally part of the samba(7) suite, iykyk π
So what does vfs_readonly actually do? It marks a share as read only for every client that connects inside the time period you configured. That's it, that's the whole vibe. Any client connecting during that window gets denied write access to all the files in the share β doesn't matter what their actual access privileges say. Your permissions could be giving main character energy and it still don't matter, the share said no π«
This module is stackable. Stack away, queen π
π 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 the one accepted by the-doption of GNUdate(1). fr fr, go peep that if you need the details π
π EXAMPLES π
Mark all shares read only
[global]
vfs objects = readonly
periodt π
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"
yes bestie, we're copying it exactly as it is written here β the doubled-up readonly:period = is exactly what the page says, so do not come for me π (eyeball it when you write your own config, okay? π)
π VERSION π
This man page is part of version 4.24.7-Ubuntu-4.24.7+dfsg-1ubuntu1 of the Samba suite. slay π
π AUTHOR π
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. iconic behavior, honestly π«Ά
π§ cute lil sign-off: this whole thing comes from Samba4.24.7-Ubuntu-4.24.7+dfs, dated09/13/2026, and it lives its life asVFS_READONLY(8). mwah π go make that share read only bestie, you got this β¨πΈπ
π¦ where this page comes from
- ubuntu stonking: samba 2:4.24.7+dfsg-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms