LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2019, 12:18 AM   #1
WeatherReport
LQ Newbie
 
Registered: Nov 2019
Posts: 4

Rep: Reputation: Disabled
How to only allow certain file extension on samba?


How to make samba only allowing certain file extension to put on for example i will only allow .doc, .pdf, .exe and it will block everything else.

I know we can use veto files, but veto files work with blacklisting certain file extenstion i found it not effective lets say we only allow 5 file extension but will block every other files extension, then i have to write a long list of other file extension.

So, I want to know if there is any whitelisting command so it will only allow certain file extension but will block everything else.
 
Old 11-24-2019, 04:32 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I would rename all my files using allowed extensions, like this:
blocked_picture.doc
and now I can use that samba share. So I do not really understand what do you want to achieve by this.

From the other hand it looks like there is no simple way, you need to implement your own filter to do that (if possible at all).
 
  


Reply



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 - allow only certain Window's user? Panupat Linux - Server 1 11-27-2012 02:46 AM
Is there a way to only allow a certain ip on a certain switch port? szboardstretcher Linux - Networking 4 10-06-2010 12:53 PM
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 04:19 PM
hosts.allow file to allow only a single IP sailu_mvn Linux - Networking 2 06-06-2007 11:47 PM
Trying to show only certain lines over a certain size in a file branall1 Linux - Software 2 11-15-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration