LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-07-2006, 09:08 AM   #1
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
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
 
Old 02-07-2006, 09:14 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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.
 
Old 02-07-2006, 10:32 AM   #3
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

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

Thanks again!

~Myles
 
Old 02-07-2006, 02:25 PM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration