At 10:29 13.05.1997 -0400, you wrote:
>Does anyone know whether SAMBA can be used for remote execution ?
Hmmm. I believe there are possibly three "flavours"...
a) Using PREEXEC and POSTEXEC directives in the SMB.CONF config
file you can tell the Samba server program SMBD to execute a
configurable command/script/program each time a client does
connect or disconnect to a share. You may even configure this
to be different for different client machines/user names etc.
b) Printer sharing basically works in such a way that the client
drops a file to a configured server directory and the triggers
a configurable print command (see "print command" directive in
SMB.CONF sample file). There is nothing to keep you from using
a "dummy printer" to have a "pipe" into a server program...
c) I believe there is also a "magic file" directive in SMB.CONF
where you can define a filename (or maybe a pattern) which gets
executed by the server process each time a client closes it.
I'm not sure if this already works (and what security risks are
involved with it!). Client might either "touch" an existing file
or drop a new one to the server and have it executed... AGAIN:
Check security implications VERY carefully before configuring
this kind of feature!
My DEM 0.00 from Germany :-)
Lars (as usual, only speaking for myself)
PS: Double-clicking on a file (that resides on a 3000 share) in
Windows File Manager only causes the PC to execute it... but
this at least gives a nice option of getting updated program
versions to a large number of PC's easily... just keep them
on a server share and have all the PC's use that share... ;)