LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba - Veto Help (https://www.linuxquestions.org/questions/linux-networking-3/samba-veto-help-412601/)

Dmjmusser 02-07-2006 09:08 AM

Samba - Veto Help
 
I've set up a file server with Samba. Pretty basic, nothing special, and it works wonderfully. However, I have set up Samba users home shares, and there are those hidden files in the home directory that can be seen if you set your Windows view type to allow it.

I'm looking for any possible way to not display those files, regardless of whether or not Windows is showing all hidden files. I don't want to be able to see
.kde and .bashrc and the like. I've heard mention in other posts about veto settings. Can these be used to acheive my desired results, and if so, how?

Many TIA.

~Myles

satinet 02-07-2006 09:14 AM

in the global section add something like this:

veto files = /lost+found/*.mp3*/*.avi*/*.exe*/*.msi*/*.wav*/

on our system we are banning mp3's etc. obviously you might want to veto .bashrc or whatever. note each file name must be seperated with strokes. I guess you could do /.*/ to veto all .hidden files....

NB you can set veto files in each share definition instead of global.

Dmjmusser 02-07-2006 10:32 AM

Thanks! It's working out just fine. Using /.*/ actually does work, though I opted to go with listing individual files.

Thanks again!

~Myles

satinet 02-07-2006 02:25 PM

great :-D

there is a 'using samba' book that mentions this and other commands. fortunately it comes with samba and is an electronic version of the o'reilly book. it's been most useful for me. in hp-ux it's in a folder called 'using_samba' or something. not sure on linux, but worth looking for in your files :-D


All times are GMT -5. The time now is 04:35 PM.