Re: Perl Help!!!

Raj Shekhar <[email protected]> Wed, 1 Sep 2004 12:42:56 +0530
Newsgroups gmane.user-groups.linux.delhi.devel
Message-ID <[email protected]>
On Tue, 31 Aug 2004 17:05:26 +0530, Dhruv Soi <dhruvs-g/icWj5ZvQOxIBOabOT86AC/[email protected]> wrote:
> I tried chown u+s scriptname.cgi .....but no help

This method is not safe, the primary reason being that there is no log
of who invoked the setuid program and at what time.

> Secondly i tried sudo and kept apache in sudoers but the script stops for
> password prompt....Then i tried Perl::expect module but from cgi even thats
> not working....Any pointers???


Sudo has a NOPASSWD option which eliminates the need for providing
passwords. However, do not try reading the its man page, which though
quite extensive does a very bad job in providing a "quickstart" type
of guide.  Have a look at http://www.aplawrence.com/Basics/sudo.html
and http://www.onlamp.com/pub/a/bsd/2002/08/29/Big_Scary_Daemons.html
for a much gentler introduction

-- 
Raj Shekhar      
My home : http://geocities.com/lunatech3007/
My blog : http://lunatech.journalspace.com/