|Do you know where your variables are?|
Perl terminal access to linux serverby Polyglot (Friar)
|on Sep 22, 2021 at 07:46 UTC||Need Help??|
Polyglot has asked for the wisdom of the Perl Monks concerning the following question:
Can Perl provide a direct link to terminal access on a linux webserver, and/or is there a module that would provide the tools for this in similar style to the DBI modules that give direct access to databases?
Assume that the script were setuid root, so permissions were not an issue.
I'm aware of the use of backticks, etc. to execute commands within a script, but am wondering if there is a more interactive approach instead of using only pre-scripted commands.
For the purposes of this question, I'm interested in what is possible more than what might be considered standard practice and/or secure. However, feel free to wax eloquent on the security risks of letting someone use setuid scripts on the server.