12.19
2025/12/19 1:09:58
Magic Scripts 是在 Samba 服务器上运行 Unix 程序并将输出重定向回 SMB 客户端的一种方法。不过,这本质上是一种实验性的技巧,Samba 团队并不推荐广泛使用,但仍有部分用户和程序依赖这些选项来正常运行。
| Option | Parameters | Function | Default | Scope |
|---|---|---|---|---|
| magic script | string (fully - qualified filename) | Sets the name of a file to be executed by Samba, as the logged - on user, when closed. | None | Share |
| magic output | string (fully - qualified filename) | Sets a file to log output from the magic file. | scriptname.out | Share |