Is it possible to use wildcards in the Whitelist as i use about 150 different “executeCommandLine” Calls in my rules and it would be a pain to Whitelist every one of it. I already use a firewall to restrict access to the API.
UPDATE: all my “executeCommandLine” Calls in my rules are working (apparently).
For security reasons all commands need to be whitelisted. Allowed commands need to be added to the misc/exec.whitelist file in the configuration directory. Every command needs to be on a separate line.
I had a little trouble as well getting this to work after upgrading to version 2.5.2. My experience has been, that you have to copy the command from the things parameters to the whitelist and not the resulting command after parameter expansion. I first had:
in the whitelist which did not work, because this got expanded from the things parameter where i entered:
When i added this to /etc/openhab2/misc/exec.whitelist all warnings and errors disappeared…