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 -d option of GNU date(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 Samba 4.24.7-Ubuntu-4.24.7+dfs, dated 09/13/2026, and it lives its life as VFS_READONLY(8). mwah πŸ’‹ go make that share read only bestie, you got this βœ¨πŸŒΈπŸ’œ
πŸ“¦ where this page comes from