Subject: Re: route default delete -- by script, not by root
To: None <netbsd-help@netbsd.org>
From: David S. <davids@idiom.com>
List: netbsd-help
Date: 02/03/2003 00:14:05
> 
> Is there another way for a script owned by a user
> in the wheel group to delete the default route? or
> to flush routes?

Install 'sudo', uncomment the line in 'pkg//etc/sudoers' that reads

	# %wheel  ALL=(ALL)       NOPASSWD: ALL

and use

	sudo route delete ...

in your script.  However, you may not want to give the wheel group
unfettered root privileges, which the above will do.  In which case, 
you should read the 'sudo' man page to see how to narrow the 
permissions to specific users and commands.

David S.

>