Tuesday, January 17, 2012

Sudo echo does not work :-0

Today I found the hard way that sudo echo will not work in Ubuntu and a good explanation is given here


Here is a small script I use to start a VM and point the system to use the VM as gateway to the internet :-)

bala@lapi:~$ cat ./Go_through_SNORT.sh
#Author: Balasubramaniam Natarajan
#Date: 13-Dec-2011
#This script will set the default route to Bodhidarmar
# and will add in the name server
VBoxManage startvm SNORT
sudo route add default gw
sudo sh -c 'echo "nameserver" >> /etc/resolv

No comments:

Post a Comment