Perl Monk, Perl Meditation | |
PerlMonks |
Re: setuid: Perl v Cby tachyon (Chancellor) |
on May 05, 2003 at 06:53 UTC ( [id://255576]=note: print w/replies, xml ) | Need Help?? |
As Zaxo point out you can't have suid root scripts ie perl on Linux. I use sudo as he suggests and find it works well. For example I have an application that I need to have CGI scripts be able to send SIG HUPs to. The CGI scripts don't have sufficient permissions running as user apache to do this so this is how I set it up so they can do it:
By using sudo then the script is not suid per se but a CGI can run it suid root (and only this script) cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|