| 1 |
<samba:parameter name="magic script" |
| 2 |
context="S" |
| 3 |
type="string" |
| 4 |
substitution="1" |
| 5 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 6 |
<description> |
| 7 |
<para>This parameter specifies the name of a file which, |
| 8 |
if opened, will be executed by the server when the file is closed. |
| 9 |
This allows a UNIX script to be sent to the Samba host and |
| 10 |
executed on behalf of the connected user.</para> |
| 11 |
|
| 12 |
<para>Scripts executed in this way will be deleted upon |
| 13 |
completion assuming that the user has the appropriate level |
| 14 |
of privilege and the file permissions allow the deletion.</para> |
| 15 |
|
| 16 |
<para>If the script generates output, output will be sent to |
| 17 |
the file specified by the <smbconfoption name="magic output"/> |
| 18 |
parameter (see above).</para> |
| 19 |
|
| 20 |
<para>Note that some shells are unable to interpret scripts |
| 21 |
containing CR/LF instead of CR as |
| 22 |
the end-of-line marker. Magic scripts must be executable |
| 23 |
<emphasis>as is</emphasis> on the host, which for some hosts and |
| 24 |
some shells will require filtering at the DOS end.</para> |
| 25 |
|
| 26 |
<para>Magic scripts are <emphasis>EXPERIMENTAL</emphasis> and |
| 27 |
should <emphasis>NOT</emphasis> be relied upon.</para> |
| 28 |
</description> |
| 29 |
<value type="default"></value> |
| 30 |
<value type="example">user.csh</value> |
| 31 |
</samba:parameter> |