write_file
Write content to files on a Webmin-managed server with safety restrictions. In safe mode, only allows writes to temporary directories and blocks system paths.
Instructions
Write content to a file. This is a dangerous operation. In safe mode, only writes to /tmp and /var/tmp are allowed. System directories (/etc, /bin, /usr, etc.) are always blocked.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| path | Yes | Absolute path to the file to write | |
| content | Yes | Content to write to the file |