Skip to content

Instantly share code, notes, and snippets.

View fchauveau's full-sized avatar

Florian Chauveau fchauveau

View GitHub Profile

Keybase proof

I hereby claim:

  • I am fchauveau on github.
  • I am florianchauveau (https://keybase.io/florianchauveau) on keybase.
  • I have a public key whose fingerprint is 4B4B 6D77 F04C B474 2334 0392 D146 6BF8 3A31 9317

To claim this, I am signing this object:

#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports