in reply to Re^2: Setuid script not working
in thread Setuid script not working

$ perl "-V:.*?suid.*?" d_dosuid='undef'; d_setresuid='undef'; d_suidsafe='undef';
http://perl5.git.perl.org/perl.git?a=search&h=HEAD&st=grep&s=suid

Replies are listed 'Best First'.
Re^4: Setuid script not working
by druidmatrix (Acolyte) on Apr 30, 2010 at 07:48 UTC

    Monks,

    You were absolutely right - it is the "setuid-emu" flag to the configure script that is causing the headaches. I rebuilt a distro with "Do you want to do setuid/setgid emulation? y" and now the script works.

    However, when I try to build it with the following configure command:

    ./Configure -Dprefix=/home/csit/usr/perl -Dsetuid-emu=y -des
    as per Configure.pm, I get the following:
    ./optdef.sh: line 3: setuid-emu=y: command not found

    Am I doing something wrong? Can someone point out the correct CLI parameter that would enable me to install it silently?

    Once again, thank you for your responses.

        I found it on the Perl::Configure page http://search.cpan.org/~mschilli/Perl-Configure-0.08/lib/Perl/Configure.pm. However, I guess I lucked out because I am still at 5.10.1. But I should upgrade to 5.12 as you suggested.

        For now, it may be better to use sudo or su with Expect as Alexander suggested.

        Thank you once again.