From 00d250b994b23e7d0d7094e02d16db1811ae9be2 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 21 Dec 2017 12:50:06 -0800 Subject: [PATCH] Add SMB entries to OSX sudoers file --- contrib/sudoers/osx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/sudoers/osx b/contrib/sudoers/osx index 96f7f4978..5e218db16 100644 --- a/contrib/sudoers/osx +++ b/contrib/sudoers/osx @@ -1,5 +1,6 @@ Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports -%admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE - +Cmnd_Alias VAGRANT_SMB_ADD = /usr/sbin/sharing -a * -S * -s * -g * -n * +Cmnd_Alias VAGRANT_SMB_REMOVE = /usr/sbin/sharing -r * +%admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE, VAGRANT_SMB_ADD, VAGRANT_SMB_REMOVE