Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Using root as a user is rarely a good idea. In fact, even on a one user computer with no net connection, it's a bad idea. Though I would imagine that the ISP would be happy enough with taint checking, this may be an appropriate time to ask for a new user with the appropriate rights (an "underadmin"). It surprises me that an ISP would actually give you any type of root access. Especially for something as simple as creating dirs, it's really not necessary. You might also want to use an exclusive filter on the username such as only alphanumeric chars allowed. A aptly-placed '/' could reak havoc on your entire setup. Be sure that this is a positive regex, don't check for characters that are NOT allowed; instead drop the name if the chars don't match a strict regex of whatever you wish to be allowed.

Also, like on most linux distros, it may be more appropriate to use a skeleton feature- a dud directory where it is simply copied on demand and its permissions set. This will allow for quicker tweaking of the initial setup in the long run (it's best not to hard code it in).

***btw. folks, what ever happened to suidperl? Did it go down flaming in controversy????

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

In reply to Re: How do I execute as root? by AgentM
in thread How do I execute as root? by Kurious

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2021-10-17 03:35 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (71 votes). Check out past polls.