Hermann Gausterer
2003-Nov-30 22:45 UTC
[Samba] vfs module for interpreting a script on file access
hi i want to ask a simple question: exists a samba VFS module for interpreting a file on access? (mostly the same as a dynamic file on an webserver) if not, i want to suggest it ;-) a simple example: a share with an single MS-DOS .bat file on it; this .bat file is (for example) a bash script file; if the file is accessed via SMB than smbd executes this script and handles the stdout output of the script to the client. the script must take care of the dos file format (CR,LF) and so an .. the client does not know this, from client side this is only a .bat file like each other ... :-) possible module options would be the $1, $2, .. execparameter for the scriptfile; (mostly all the smb.conf "VARIABLE SUBSTITUTIONS" like %U, %I .. and so on) of course the script should do something dynamic based on this parameters. this would be ideal for real MS-DOS hosts which cannat do anything on itself ;-) i hope, i get some replies here :-) mfg hermann
rruegner
2003-Nov-30 23:28 UTC
[Samba] vfs module for interpreting a script on file access
Hi, i am not sure if i under stand you in the right way, but samba compiled with vfs having the the right options in the conf and a antivirus solution checks the files on the demand if an smb client opens it. I am unclear for what you should need a script having this entry in a share i. e. vfs objects = vscan-fprotd will do the job with fprotd daemon Best Regards ----- Original Message ----- From: "Hermann Gausterer" <mrq1@gmx.net> To: <samba@lists.samba.org> Sent: Sunday, November 30, 2003 11:45 PM Subject: [Samba] vfs module for interpreting a script on file access> hi > > i want to ask a simple question: > exists a samba VFS module for interpreting a file on access? > (mostly the same as a dynamic file on an webserver) > if not, i want to suggest it ;-) > > a simple example: > a share with an single MS-DOS .bat file on it; > this .bat file is (for example) a bash script file; > if the file is accessed via SMB than smbd executes this script and > handles the stdout output of the script to the client. the script > must take care of the dos file format (CR,LF) and so an .. > the client does not know this, from client side this is only a .bat > file like each other ... :-) > > possible module options would be the $1, $2, .. execparameter > for the scriptfile; (mostly all the smb.conf > "VARIABLE SUBSTITUTIONS" like %U, %I .. and so on) > > of course the script should do something dynamic based on this > parameters. this would be ideal for real MS-DOS hosts which > cannat do anything on itself ;-) > > i hope, i get some replies here :-) > mfg hermann > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Woodseats admin
2003-Dec-01 15:13 UTC
[Samba] vfs module for interpreting a script on file access
woulldn't the pre and post exec command do what your after ? ----- Original Message ----- From: "Hermann Gausterer" <mrq1@gmx.net> To: <samba@lists.samba.org> Sent: Sunday, November 30, 2003 10:45 PM Subject: [Samba] vfs module for interpreting a script on file access> hi > > i want to ask a simple question: > exists a samba VFS module for interpreting a file on access? > (mostly the same as a dynamic file on an webserver) > if not, i want to suggest it ;-) > > a simple example: > a share with an single MS-DOS .bat file on it; > this .bat file is (for example) a bash script file; > if the file is accessed via SMB than smbd executes this script and > handles the stdout output of the script to the client. the script > must take care of the dos file format (CR,LF) and so an .. > the client does not know this, from client side this is only a .bat > file like each other ... :-) > > possible module options would be the $1, $2, .. execparameter > for the scriptfile; (mostly all the smb.conf > "VARIABLE SUBSTITUTIONS" like %U, %I .. and so on) > > of course the script should do something dynamic based on this > parameters. this would be ideal for real MS-DOS hosts which > cannat do anything on itself ;-) > > i hope, i get some replies here :-) > mfg hermann > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba