From 15518a8cade983343a5f60658845ad943e2bd3c5 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Mon, 7 Aug 2017 13:15:40 -0700 Subject: [PATCH] (#8842) Update contrib sudoers file for Ubuntu This commit updates the Ubuntu sudoers file in contrib to be up to date with the documentation. --- contrib/sudoers/linux-ubuntu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/sudoers/linux-ubuntu b/contrib/sudoers/linux-ubuntu index 4e2cd8bde..b4f6693ec 100644 --- a/contrib/sudoers/linux-ubuntu +++ b/contrib/sudoers/linux-ubuntu @@ -1,9 +1,8 @@ # These work with Ubuntu - they might need tweaking for other distributions -Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports +Cmnd_Alias VAGRANT_EXPORTS_CHOWN = /bin/chown 0\:0 /tmp/* +Cmnd_Alias VAGRANT_EXPORTS_MV = /bin/mv -f /tmp/* /etc/exports Cmnd_Alias VAGRANT_NFSD_CHECK = /etc/init.d/nfs-kernel-server status Cmnd_Alias VAGRANT_NFSD_START = /etc/init.d/nfs-kernel-server start Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar -Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -r -e * d -ibak /*/exports -Cmnd_Alias VAGRANT_EXPORTS_REMOVE_2 = /bin/cp /*/exports /etc/exports -%sudo ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY, VAGRANT_EXPORTS_REMOVE, VAGRANT_EXPORTS_REMOVE_2 +%sudo ALL=(root) NOPASSWD: VAGRANT_EXPORTS_CHOWN, VAGRANT_EXPORTS_MV, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY