Samba配置与使用全解析
1. Magic Scripts
Magic Scripts 是在 Unix 上运行程序并将输出重定向回 SMB 客户端的一种方法,但这本质上是一种实验性的技巧,Samba 团队强烈不建议使用。不过,仍有一些用户和他们的程序依赖这两个选项来正常运行。
1.1 相关选项
| 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 |