FEATURE REQ: safe % expansion via new syntax
Nicolas.Williams at wdr.com
Tue Feb 1 21:49:05 GMT 2000
On Wed, Feb 02, 2000 at 07:51:54AM +1100, Luke Kenneth Casson Leighton wrote:
> On Tue, 1 Feb 2000, Nicolas Williams wrote:
> > Particularly, I'd like to make Andy Bakun's open/close command patch
> > safer as well so I can make use of it. The open/close command patch is
> > very useful, and tons safer than the 'magic script' parameter...
> andrew doesn't understand why he added magic script. if you can find a
> way to retire it you will make him very happy.
Sure. Andy Bakun's open/close command patch will do it.
path = /var/tmp/applaunch/%u
close command = /usr/local/libexec/my_start_cmd_via_smb %u %f
(I'd pass in other arguments as well, but that's just an example).
Then /usr/local/libexec/my_start_cmd_via_smb opens the given file that's
just been closed by the client, validates the contents of the file,
checks the user's authorization and if all is well then it starts the
application named in the file. Of course, my_start_cmd_via_smb would not
be a part of Samba.
The way I would code that my_start_cmd_via_smb script would support the
following file format:
APPLICATION=<name of app family>
COMMAND=<actuall app [not path] to launch>
This would remove any need for 'magic script'.
'open command' has different uses.
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
More information about the samba-technical