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.
-- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Sun 18 Apr 1999 - 08:50:56 CEST