Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Executing unix command from script

by philipbailey (Chaplain)
on Jul 08, 2008 at 20:47 UTC ( #696334=note: print w/ replies, xml ) Need Help??

in reply to Executing unix command from script

Another way, not mentioned so far, is to set the "setuid" bit on the executable file. This assumes the file is owned by root. Something like:

chmod u+s
As for any method giving ordinary users elevated privileges, there are security issues. You may need to check that Perl has been compiled with the "ENABLE_SUIDPERL" option. There may be other complications--but this is something else for you to consider.

Comment on Re: Executing unix command from script
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://696334]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-11-26 08:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls