Koozali.org: home of the SME Server

Preventing certain files

Offline kryptos

  • *****
  • 245
  • +0/-0
Preventing certain files
« on: June 08, 2009, 04:50:59 AM »
Hi all,

We have an SME 7.4 as fileserver.Is it possible to prevent users from storing unwanted files(e.g mp3, avi) can this be possible?


regards,
Rocel

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Preventing certain files
« Reply #1 on: June 08, 2009, 05:17:15 AM »
You could audit the system, or create a script to search and delete certain files, would that be enough?

Offline kryptos

  • *****
  • 245
  • +0/-0
Re: Preventing certain files
« Reply #2 on: June 08, 2009, 05:25:47 AM »
hi,

Im not very knowledgeable yet with scripting. I thought of something that it can be done though smb templates. Anyways thanks for the heads up. I try to search more.

Regards,
Rocel

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Preventing certain files
« Reply #3 on: June 08, 2009, 05:29:36 AM »
you could just search for the extensions:
Code: [Select]
updateb
locate *.mp3

O create the script , that will run everyday and send the files to /dev/null or somewhere else.
If the script will do, I can help with that.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Preventing certain files
« Reply #4 on: June 08, 2009, 10:02:47 PM »
Im not very knowledgeable yet with scripting. I thought of something that it can be done though smb templates. Anyways thanks for the heads up. I try to search more.
You might be looking for the veto files directive: http://marc.info/?l=samba&m=121698864028014&w=2

Here is more on it (just above half way down the page):
http://oreilly.com/catalog/samba/chapter/book/ch05_02.html

Unfortunately the references in the samba manuals lead to dead pages: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)