git: 0fa637ffee21 - main - release: Allow sudo -g anyone and sudo -u anyone -g anytwo

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 04:08:11 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0fa637ffee21af6c638148cd047f735d91d50d32

commit 0fa637ffee21af6c638148cd047f735d91d50d32
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-09-04 16:45:52 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-03 04:05:49 +0000

    release: Allow sudo -g anyone and sudo -u anyone -g anytwo
    
    When only the user (ALL) is specified explicitly, and the group is
    implied, only sudo -u works.  Specifying both the user and group, like
    (ALL:ALL), is required to:
    
    1. Use sudo -g by itself (with no -u user)
    2. Use sudo -u and -g together, with a -g group that is different from
       the -u user's primary group
    
    Obtained from:  https://github.com/sudo-project/sudo/commit/1d13533ea3cda05ec666c45c6c533b614fdd97aa
    Reviewed by:    imp
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/835
---
 release/tools/vagrant.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release/tools/vagrant.conf b/release/tools/vagrant.conf
index 5a4aa7d3ba79..814a2892bb31 100644
--- a/release/tools/vagrant.conf
+++ b/release/tools/vagrant.conf
@@ -50,7 +50,7 @@ vagrant_common () {
 		usermod root -h 0
 
 	# Configure sudo to allow the vagrant user
-	echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> ${DESTDIR}/usr/local/etc/sudoers
+	echo 'vagrant ALL=(ALL:ALL) NOPASSWD: ALL' >> ${DESTDIR}/usr/local/etc/sudoers
 
 	# Configure the vagrant ssh key
 	mkdir ${DESTDIR}/home/vagrant/.ssh