If the information is for the OP, offer it as a reply to the OP, not me!

Its both

And just how restricting the arguments to the program, to their exact range of legal values, limiting?

It would require the Op to enumerate every possible legal input , even all the units, of which he says there are 2526; quoting is much simpler

If you think throwing whatever garbage or carefully calculated input a (potentially malicious) user chooses to supply, at a shell and trusting to luck that there are no flaws in the quoting done by those modules, is an effective security mechanism, you are somewhat less than a dick. You are a fool!

Its much better to badmouth them without investigation of any kind

I thought everyone knew that the *only* secure method of doing the is to only allow that which is safe.

Yup, and quoting , or avoiding the shell accomplishes this exactly

Trying to "sanitise" user input has been the downfall of many a system. And with fools like you around, it will long continue that way.

What, you've never heard of the `rm -rfv /` units?


In reply to Re^8: Security issue and solution for terminal command accessed by public user by Anonymous Monk
in thread Security issue and solution for terminal command accessed by public user by keenlearner

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.