> > > Red Hat provides a setuid perl in the perl-setuid package. SetUID perl
> > > includes its own restrictions and security precautions.
> >
> > Yeah they sure do, except it doesnt work under any circumstance, no
matter
> > what I do it says Can't do suid.
>
> Works for me. As mentioned, Perl has a number of built-in restrictions to
> make sure Bad Things don't happen.
>
> After you change your script to point to /usr/bin/suidperl, follow the
> restrictions, and setuid your script what is the exact error?
>
> thornton
here is basically what it boils down to:

bash-2.05b$more create
#! /usr/bin/suidperl
-rwsr-sr-x    2 root     root       531516 Jun 16 20:37 /usr/bin/suidperl

-rwsr-xr-x    1 root     root         1176 Jun 16 21:13 create

bash-2.05b$ whoami
nobody
bash-2.05b$ ./create
Can't do setuid
bash-2.05b$

-Drew


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to