vfs_worm — disallows writes for older file
vfs objects = worm
This VFS module is part of the samba(7) suite.
vfs_worm module controls the writability
of files and folders depending on their change time and a
adjustable grace period.
If the change time of a file or directory is older than the specified grace period, the write access will be denied, independent of further access controls (e.g. by the filesystem).
In the case that the grace period is not exceed, the worm module will not impact any access controls.
Period in seconds which defines the time how long the write access should be handled by the normal access controls. After this grace period the file or directory becomes read only.
Deny the write access to files and folders, which are older than five minutes (300 seconds):
[wormshare]vfs objects = worm worm:grace_period = 300