Re: [LIP] using perl to change password

Devdas Bhagat <devdas-B/gC27/pXbteH41UXmfQsti2O/[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On 26/03/04 01:37 -0800, vivek khurana wrote:
<snip>
> my web app hangs. I had set uid to zero using
> setuid(0) before calling this script. 
Your script will have to be suid root.
A non root script cannot call setuid(0) and expect it to work.
/me suggests using 
#!/usr/bin/perl -T

use strict;
use warnings;
use CGI::Carp;

Devdas Bhagat


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.