From: hume.spamfilter on
Ranjith <hclranjith(a)gmail.com> wrote:
> My question was how to block certain kind of file extension to copy
> to samba server ...?

No, you can't do that unless you hack the source code. The closest thing
you can get in your situation is to use the smb.conf "veto files" option, to
tell Samba to hide specific patterns of files.

See http://oreilly.com/catalog/samba/chapter/book/ch05_02.html

Keep in mind that deciding whether or not a file is virus-infected based
on a "deny" list of file extensions is a way of being falsely assured.

The real question is why your PCs are virus infected in the first place.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: Ranjith on
On Dec 6, 11:36 pm, hume.spamfil...(a)bofh.ca wrote:
> Ranjith <hclranj...(a)gmail.com> wrote:
> > My question was how to block certain kind of file extension to copy
> > to samba server ...?
>
> No, you can't do that unless you hack the source code.  The closest thing
> you can get in your situation is to use the smb.conf "veto files" option, to
> tell Samba to hide specific patterns of files.
>
> Seehttp://oreilly.com/catalog/samba/chapter/book/ch05_02.html
>
> Keep in mind that deciding whether or not a file is virus-infected based
> on a "deny" list of file extensions is a way of being falsely assured.
>
> The real question is why your PCs are virus infected in the first place.
>
> --
> Brandon Hume    - hume -> BOFH.Ca,http://WWW.BOFH.Ca/

The users are anonymous so I cant clean their system by installing
anti virus..
Now I deleted all the .exe and .ini files from samba by the below
specified command
# find /samba -name *.exe -exec rm {} \;
# find /samba -name *.ini -exec rm {} \;

ranjith