Filter files when browsing a share from Windows?

Posted on 2006-06-02
Medium Priority
Last Modified: 2010-03-18

I am working on setting up a Samba server, and wondered the following:

Is there a way to filter what file types are shown to the user as they brose a network share from Windows?  For example, Joe Blow on his XP machine connects to the Samba Share Pictures.  Is there a way in the Samba configuration for Joe to only see GIF files when he connects to that share, despite what else is in the directory?

Thanks in advance.

Question by:Ziggie013
  • 3
  • 2
LVL 88

Expert Comment

ID: 16816728
Filtering views is the job of windows, not samba, so no, you can't do that in such a way. You would need some form of policy you can set which then is forced on the PC, maybe a product like novell's zenworks could do that.

Author Comment

ID: 16816830
What about setting files to hidden from within samba?  That will block the majority of Windows viewers from seeing the hidden files.  is there a way to do this in the samba share definitions?  
LVL 88

Expert Comment

ID: 16817992
In Samba there aren't many settings in that respect you can change, inside linux you can of course change more settings for the files. But this is in my point of view to much trouble to go about. You'd probably also have setup a special kernel with ACL's to get finer settings, which isn't trivial.
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

LVL 43

Accepted Solution

ravenpl earned 2000 total points
ID: 16818750
when configuring samba share add

#dont show neither don't allow accessing files that match this patterns (three patternd here)
veto files = /*Security*/*.tmp/*root*/
#hide, but if user know the name allow accessing it (names starting from dot and starting from hidden)
hide files = /.*/hidden*/

Author Comment

ID: 16818805
If I understood that right, it's like this:

for veto files your example would block out all *.tmp, anything containing security, and anything containing root?

and for hide files, your example would only hide files that start with . or hidden?

so, for my example, to just hide jpg, it would be:

hide files = /*.jpg

Author Comment

ID: 16818957
Ah, I needed the last /
hide files = /*.eps/


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question