Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Calling a setuid script in a perl script

by Anonymous Monk
on Nov 24, 2011 at 16:19 UTC ( [id://939917]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Calling a setuid script in a perl script
in thread Perl Setuid - Oracle Password Hardcoding

the problem is that sudo requires a tty to run. You will not be able to run sudo on a crontab or cgi.

  • Comment on Re^3: Calling a setuid script in a perl script

Replies are listed 'Best First'.
Re^4: Calling a setuid script in a perl script
by afoken (Chancellor) on Nov 24, 2011 at 16:53 UTC
    sudo requires a tty to run

    Are you sure? My sudo (unmodified Slackware64-13.37, i.e. unmodified sudo-1.7.4p6) does not require a tty or an askpass helper program when configured that way.

    You will not be able to run sudo on a crontab or cgi.

    Well, my system allows sudo from CGI. The CGI user is explicitly allowed to invoke a selected program via sudo, without a password.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found