[PLUG] Disconnect eth1 from the command line without sudo
Keith Lofstrom
keithl at gate.kl-ic.com
Thu Nov 20 21:52:22 UTC 2014
On Wed, Nov 19, 2014 at 03:05:22PM -0800, David wrote:
> Using the visudo command, you can follow this template I have:
>
> Cmnd_Alias NETWORK = /sbin/ifconfig, /usr/sbin/wpa_gui, \
> /sbin/dhclient, \
> /etc/init.d/networking, /usr/sbin/iftop
>
> dafr ALL=PASSWD: ALL, NOPASSWD:NETWORK,TOOLS,PMTOOLS
That looks like a useful way for me to accomplish a similar
networking hack. Thanks!
What security issues does it create? Using sudo in a script
seems somewhat safer than enabling a command by typing my
password in a public place with dozens of cameras about.
Keith
--
Keith Lofstrom keithl at keithl.com
More information about the PLUG
mailing list