Hi All, I have the following questions: We have some folders / shares where we store for example only .doc files. But some users also saves the .jpg files in this share. We don't want this and we wondered if we can block saving .jpg files with samba. Is there an option to set in smb.conf so we can block the saving of .jpg files? Second one: Some users saves the .doc files for example as thisisanexampleforarealylongnameforawordfile.doc Is there an option to prevent these long names? Thanx Met vriendelijke groeten, Bart Hendrix
Bart Hendrix wrote:> Hi All, > > I have the following questions: > > > We have some folders / shares where we store for example only .doc files. But some users also saves the .jpg files in this share. We don't want this and we wondered if we can block saving .jpg files with samba. Is there an option to set in smb.conf so we can block the saving of .jpg files? > > Second one: > > Some users saves the .doc files for example as thisisanexampleforarealylongnameforawordfile.doc > > Is there an option to prevent these long names? > > Thanx > > Met vriendelijke groeten, > > Bart HendrixHi Bart.. This sounds to me like two training issues, and possibly one scripting issue. What I mean is, users should be trained to create intelligently named files that are also sensible names to other users. What would you have Samba do with that long name for example? Truncate it? Perform the idiotic Micrsoft trncat~1 deal on it? I think those options would make your life more miserable. :) Next, tell the users not to put .jpg files in that share. Follow up with pain and suffering for those that don't follow directions. <grin> And optionally, for those that still can not follow simple directions, write a cron job to rm -f *.jpg in that directory weekly/nightly/hourly Just some thoughts. - Bill Arlofski Reverse Polarity 860-824-2433 waa@revpol.com
Bart Hendrix wrote:>Hi All, > >I have the following questions: > > >We have some folders / shares where we store for example only .doc files. But some users also saves the .jpg files in this share. We don't want this and we wondered if we can block saving .jpg files with samba. Is there an option to set in smb.conf so we can block the saving of .jpg files? > >Second one: > >Some users saves the .doc files for example as thisisanexampleforarealylongnameforawordfile.doc > >Is there an option to prevent these long names? > >Thanx > >Met vriendelijke groeten, > >Bart Hendrix > >To restric the .jpg files the veto files option is for you... |veto files = /*.mp3/ /*.wav/ /*.mpeg/ /*.avi/ Check this link... http://www.faqs.org/docs/samba/ch08.html For the long names i don't know... :D | -- OrvUx Making the Hard...Soft with GNU/Linux ;) Usuario Linux #16088