-
|
Hello, struggeling a bit getting external commands running python scripts working in version 5 the same way as they do in version 4.x In 4.x the following works perfect: but in v5 it doesn't. I get the following error messages: Should the commands be formatted differently? Should I have to consider two options wether the webcontrol is open or not? Best regards, Walter |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
This is a recent change in v5/master to improve security of the application and users. The problem is that users open Motion up to the internet and also allow all parameters to be changed via the webcontrol. This poses a significant risk to their systems in whole not just the Motion app. To mitigate this, the latest master imposes a condition that says that if the webcontrol is completely open, then the only scripts that can be executed must be located in a subdirectory of where the motion.conf is located. If the webcontrol is closed, then users can have the script located anywhere. So, for your example, the choice is going to be to close the webcontrol to changes in scripts or create your own small bash script that executes the python and place it in a subdirectory called scripts. (Yes I know it is a pain, and people won't like it, and it used to work but now doesn't) |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, that works ok I think, got it working |
Beta Was this translation helpful? Give feedback.
This is a recent change in v5/master to improve security of the application and users. The problem is that users open Motion up to the internet and also allow all parameters to be changed via the webcontrol. This poses a significant risk to their systems in whole not just the Motion app. To mitigate this, the latest master imposes a condition that says that if the webcontrol is completely open, then the only scripts that can be executed must be located in a subdirectory of where the motion.conf is located. If the webcontrol is closed, then users can have the script located anywhere.
So, for your example, the choice is going to be to close the webcontrol to changes in scripts or create you…