[svlug] Giving admin. power to a web mgmt. interface
Aaron T Porter
atporter at primate.net
Tue Nov 13 13:03:01 PST 2001
I'm not all that comfortable suggesting this... but:
#include <unistd.h> int main (void)
{
execl ("/bin/bash", "bash", "/usr/bin/script.sh", NULL);
return 1;
}
On Tue, Nov 13, 2001 at 12:48:17PM -0800, Ivan Passos wrote:
> > I think you ignored the part where Marc said "perl". If I remember
> > properly, most shells ignore suid bits. No suid-shell scripts. That's why
> > you'll want to use Perl.
>
> Oh-oh ... I didn't know that. :(
>
> As in my systems I don't have Perl (nor any other scripting language other
> than shell), I guess I'll have to write a C application to do that (not a
> big deal, especially since it's a very simple app. in the beginning).
>
> Thanks for clearing that up, it helped a lot!!
More information about the svlug
mailing list