I may need a strong shot of coffee but I though putting "hide files = /~*/" as follows in the samba config file would hide files with a tilde. [homes] comment = Home Directories browseable = no writable = yes hide files = /~*/ Unfortunately after restarting the server the files are still visible. Regards, Vandaman.
> I may need a strong shot of coffee but I though > putting "hide files = /~*/" as follows in the > samba config file would hide files with a tilde. > > [homes] > comment = Home Directories > browseable = no > writable = yes > hide files = /~*/ > > > Unfortunately after restarting the server the files > are still visible. >If you have Windows Explorer set to show hidden files, they will appear in a dim color. Quoting from the book "Using Samba" at http://oreilly.com/catalog/samba/chapter/book/ch05_02.html ? Instead of simply hiding files beginning with a dot, you can also specify a string pattern to Samba for files to hide, using the |hide| |files| option. For example, let's assume that we specified the following in our example |[data]| share: [data] hide files = /*.java/*README*/ "If we want to prevent users from seeing files at all, we can instead use the |veto| |files| option. This option, which takes the same syntax as the |hide| |files| option, specifies a list of files that should never be seen by the user. For example, let's change the |[data]| share to the following: [data] veto files = /*.java/*README*/ ?
I may need a strong shot of coffee but I though putting "hide files = /~*/" as follows in the samba config file would hide files with a tilde. Vandaman Wrote: [homes] comment = Home Directories browseable = no writable = yes hide files = /~*/ # Try this ! # for the heck of of it "hides files = /.jpg*/" # Could be the tilde Character Unfortunately after restarting the server the files are still visible. JohnStanley Writes: Where is the folder at your using samba to share? Is this share on Windows? If so I don't think it will ever work. However it will work on Samba 3 and > under CentOS
On Saturday 08 November 2008 20:28:23 Vandaman wrote:> I may need a strong shot of coffee but I though > putting "hide files = /~*/" as follows in the > samba config file would hide files with a tilde. >You mean files starting with a tilde? Anne -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20081109/f5b8831d/attachment-0003.sig>
Anne Wilson wrote:> Vandaman wrote: > > I may need a strong shot of coffee but I though > > putting "hide files = /~*/" as follows in > the > > samba config file would hide files with a tilde. > > > You mean files starting with a tilde? >I expanded the selection to hide all files with a tilde. I will also setup a music share and hide .ini and .jpg files which are hidden on windows but would be displayed on the Samba share. Regards, Vandaman.