Skip to main content

Veto Files

You may use a set of patterns as a filter to allow or deny accessing and listing files.

File names are compared against the pattern configured using the following two options, ‘files_allow’ and ‘files_deny’.

If the file names and the configured pattern matches then the file is accessible/inaccessible by SMB clients (create, open) and visible/invisible (list operation) respectively.

Each pattern in the list MUST be separated by a ‘ | ’ and can contain entries such as ‘ ? ’ and ‘ * ’, that specify wildcard when applicable for multiple files. The delimiter ‘ | ’ also allows for spaces in the included entry.

For example, to display files containing extensions such as .foo and .bar, and containing the keyword, ‘foobar’:

files_allow = *foo|*.bar|*foobar*

For example, to limit the display and accessibility of files containing extensions such as .foo and .bar and containing keywords, ‘foobar’:

files_deny = *foo|*.bar|*foobar*

Please note that if a file name matches both ‘files_allow’ and ‘files_deny’ patterns, then the precedence has ‘files_deny’, i.e., the files won’t be accessible, nor visible.