Samba Hide Office Temp Files

Samba Hide Office Temp Files

When working on Office documents like Word, Excel they create a temporary file when they are being worked on. This can sometimes confuse people working on SAMBA shares. See example

spreadsheet temp file

These temp files will begin with a tilde (~)

There is an option in SAMBA to hide certain files with a wildcard. Simply add this line:

hide files = /~*/

This means any files with tilde will be hidden until ‘Show hidden files’ are selected in Windows explorer.

To ensure they are not seen at all even with  ‘Show hidden files’ selected use this line.

veto files = /~*/