CGI may execute in a jail or chroot environment.
Regards,
Jan
CGI may execute in a jail or chroot environment.
Regards,
Jan
[quote=“MostlyHarmless”]CGI may execute in a jail or chroot environment.
Regards,
Jan[/quote]
Thanks, I’ve been looking it up but don’t see how to get this disabled, can you give me more information about this?
[quote=“Kyvill”][quote=“MostlyHarmless”]CGI may execute in a jail or chroot environment.
Regards,
Jan[/quote]
Thanks, I’ve been looking it up but don’t see how to get this disabled, can you give me more information about this?[/quote]
Depends on your Linux distribution. And I don’t do much Linux stuff (mostly FreeBSD here).
Anyhow, the command you are trying to execute from the CGI script is ./power. That is a relative path and the shell would expect that executable to be in its current working directory, which is most probably different from what it is in your terminal window.
Try placing that “power” executable into an absolute path, like /usr/local/bin/power and execute that from the CGI.
Further make sure that the program is executable by the web server’s unix user (permissions 755 should do) and that the TTY device representing the card is also accessible by that user (probably www).
Regards,
Jan