Re: isdnd-einwahl

From: Klaus Herrmann <klaus.herrmann(at)gmx.net>
Date: Sun, 18 Apr 1999 13:19:48 +0200

Hallo!

> As Klaus Herrmann wrote:
>
> > ja, das funktioniert ja theoretisch. Das Problem ist aber, dass
> > "ifconfig" - Parameter aendern (also auch Up/down) nur der root
> > darf.
>
> (Ungetestet)
>
> #!/usr/bin/suidperl
>
> die "usage: isdn {on | off}\n" unless $#ARGV == 0 &&
> ($ARGV[0] eq "on" || $ARGV[0] eq "off");
>
> $isdnif = "isp0"; # configure this!
>
> if ($ARGV[0] eq "on") { $arg = "up"; }
> else { $arg = "down"; }
>
> $ENV{'PATH'} = "/sbin";
> exec "ifconfig", $isdnif, $arg;
> # -EOF-
>
> Das ganze dann setuid root installieren.

Wie, setuid root installieren? Was heisst das?
danke,
    Klaus

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 18 Apr 1999 - 13:23:04 CEST

search this site