Skip to content

Instantly share code, notes, and snippets.

View mateusrevoredo's full-sized avatar

Mateus Revoredo mateusrevoredo

View GitHub Profile
@mateusrevoredo
mateusrevoredo / install_vagrant_sudoers.sh
Last active August 29, 2015 14:19 — forked from joemaller/install_vagrant_sudoers.sh
Vagrant NFS Mount Without Password
#!/bin/bash
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password
# Updated to work with Vagrant 1.7.x
# Allow passwordless startup of Vagrant when using NFS.
# Based on https://gist.github.com/joemaller/6764700
# Stage updated sudoers in a temporary file for syntax checking
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP