Re: 'nobody' using sudo -- scary!




Quoth Johnny <schafer.dave@xxxxxxxxx>:

Given a perl based web application, running as 'nobody' with a need to
execute some privileged command, what approach is recommended?

Stick the details of what to do in a file somewhere, and run a program
out of root's crontab to check the list and perform the commands.
*Obviously* you will need extremely careful checking of the contents of
that list; you will want to write the root command in Perl, and use
taint mode.

Ben

--
Razors pain you / Rivers are damp
Acids stain you / And drugs cause cramp. [Dorothy Parker]
Guns aren't lawful / Nooses give
Gas smells awful / You might as well live. ben@xxxxxxxxxxxx
.



Relevant Pages

  • Re: perl command line arguements
    ... I have associate the perl executable to the .pl extension. ... but fails when I pass the command line arguements. ... When I execute the ...
    (comp.lang.perl.misc)
  • Re: Memory: measuring 5 limitations
    ... >> This will give you information about the execution of the script. ... > Yeah I have shell access and I can execute the time command. ... If you can execute your script *without* typing in perl at the ...
    (comp.lang.perl.misc)
  • RE: setting unix command through perl script
    ... I am automating one task in Perl in which this command is ... If I don't execute this command then entire task would fail. ... setting unix command through perl script ...
    (perl.beginners)
  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Re: Linux
    ... You almost certainly have Perl already installed. ... But the actual command line interpreter should be the same between them. ... put the shebang line as the first line of the script. ... You can then execute the program ...
    (perl.beginners)