Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: kryptos on June 08, 2009, 04:50:59 AM

Title: Preventing certain files
Post by: kryptos 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
Title: Re: Preventing certain files
Post by: Franco 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?
Title: Re: Preventing certain files
Post by: kryptos 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
Title: Re: Preventing certain files
Post by: Franco 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.
Title: Re: Preventing certain files
Post by: cactus 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