fix sudoers file to allow -u option

This commit is contained in:
cody burkard
2014-11-17 16:19:28 -08:00
parent 9b5fa1d7ed
commit 0d271f9477
+1 -1
View File
@@ -6,7 +6,7 @@
#
# optional argument: Mininet branch to install
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
echo mininet-vm | sudo tee /etc/hostname > /dev/null
sudo sed -i -e 's/ubuntu/mininet-vm/g' /etc/hosts