Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: IPC::Run and ACLs?

by karlgoethebier (Vicar)
on Apr 03, 2014 at 20:56 UTC ( #1081005=note: print w/ replies, xml ) Need Help??


in reply to IPC::Run and ACLs?

"...a workaround with IPC::Run..."

Perhaps you can provide some more details...(AKA example)?

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»


Comment on Re: IPC::Run and ACLs?
Re^2: IPC::Run and ACLs?
by larryl (Scribe) on Apr 03, 2014 at 21:17 UTC

    Not sure what more details I can provide... The code does this:

    use IPC::Run qw( run ); my $in = "some text input to script"; my ($out, $err); run([ 'foo' ], \$in, \$out, \$err) or throw "run(foo): $err : $?";

    If the "foo" script has execute permissions set, I can run foo directly and also via the code above.

    If the "foo" script does not have execute permissions set, but I am still allowed execute via ACLs, I can run foo directly but the code above fails with a "permission denied" error.

    As I mentioned previously, IPC::Run is testing the script with "-x foo", which does not pay attention to ACLs, and is returning "permission denied" without trying to run the script. So I am hoping there is either some trick I can play with IPC::Run to make it pay attention to ACLs, or some similar module that I can use instead that pays attention to ACLs.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (17)
As of 2015-07-01 17:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (15 votes), past polls