Merge pull request #439 from cdburkard/patches/sudoers

fix sudoers file to allow -u option
This commit is contained in:
Brian O'Connor
2014-11-17 17:01:50 -08:00
committed by Brian O'Connor
+1 -1
View File
@@ -6,7 +6,7 @@
# #
# optional argument: Mininet branch to install # optional argument: Mininet branch to install
set -e set -e
echo `whoami` ALL=NOPASSWD: ALL | sudo tee -a /etc/sudoers > /dev/null echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers > /dev/null
sudo sed -i -e 's/Default/#Default/' /etc/sudoers sudo sed -i -e 's/Default/#Default/' /etc/sudoers
echo mininet-vm | sudo tee /etc/hostname > /dev/null echo mininet-vm | sudo tee /etc/hostname > /dev/null
sudo sed -i -e 's/ubuntu/mininet-vm/g' /etc/hosts sudo sed -i -e 's/ubuntu/mininet-vm/g' /etc/hosts