/etc/rport/rport.conf
on Linux or C:\Program Files\rport\rport.conf
on Windows. &
. On Linux, you can use line breaks or the semicolon. &
, ;
, \n
must be allowed by the regular expression on the command restrictions. systemctl (status|restart)
can be followed by any character. For example, systemctl status cron;poweroff
is possible. If you want to allow just single command but with parameters, you must deny all characters that allow command concatenation. cmd.exe
shell of Windows. To execute a PowerShell command, you must prefix the command with powershell
, for example, powershell "Get-Service spooler"
.