From 07409ae4c0ff9358e0f92c75d30a689b4fb3b6be Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 8 Nov 2015 21:02:38 -0600 Subject: [PATCH] Updating passwordless sudo documentation --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae7ea80..8d0211a 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,14 @@ Example: ## Passwordless sudo -Add the following snippet to the sudoers file (for example, to `/etc/sudoers.d/vagrant_hostupdater`) to make it +Add the following snippet to the top of the sudoers file using `sudo visudo`. It will make vagrant stop asking password when updating hosts file: # Allow passwordless startup of Vagrant with vagrant-hostsupdater. Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts - %sudo ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE + %admin ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE + ## Installing development version