From nobody Sat Feb 03 04:08:11 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TRfJC66Fsz58yFl; Sat, 3 Feb 2024 04:08:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TRfJC46y3z4nm3; Sat, 3 Feb 2024 04:08:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706933291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9IgfP/KoLSseD6EiFqJPWM7J4n0vGNUfygOE1c1qo3o=; b=LgW9+f4uerAnvRv7nk6F3QiiStVEHb/mNvG3OZRiQz7lJn5tTmu1Q7Cn+Cuv0FBv+AvRIN AFW5OGtb5oUAWN0/yKWIqUSvFHHKVdrLrNyU+IPFUZawekLAlUrfWrHqQyuy1D7CiThUHB fkZ5+5S4oLd/f0KOZjE6purtKaCdGWbVsk1P08535NMQ2TZ5qWhBoCJ5M88hTG7PcswJD+ NgFwblOs6YGjPr514O+f6Q8oXdOCuBvaeAkf4fIk8dMu1LZqMo1N+RRvJ5rsn71Jf0Sf7T vBkkudmFl2DQBu4oAUIWHmT5UZxr0p3lr5vXS1kKnvVOxmMa9KoIZkY4QPbKxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706933291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9IgfP/KoLSseD6EiFqJPWM7J4n0vGNUfygOE1c1qo3o=; b=CgSBB3WeQBCL2P++J6QCD9x3ijPNk+9R+Lmre4l2aoKesPpSQO+gbs4QtZj/fZoQiW6bl6 X/DFjqg2tgBF0C3JBDK6GDowOqxF8xHuQ05+K45Z/izoSdBEIkVqdKOFF0/EXhX/oMuFew 247JmCYbCkpGzCBZUtQ9jwXhp8DSnnTeIl813ACLezuDudRKjFC4I5Wes8a0vCIgwspGsW P/4si0lXeYvGjALZ5WFqdyZVjLc3AINDGcGKOK7U9WpQcnvtdWyD6xeylTWALho7taPVIl D1cpPaQOgEPcPgZiquVlwTtneZOEZV9r4+s/1PHC9gRIDLLOWnJH+Pf9Zz9MJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706933291; a=rsa-sha256; cv=none; b=f07N83FCTeF/hRK76DGSXIEcngyxJI90WZAjlaVkA/kASCAZ9XXrmyjKlbNRZb9DZ7ehZ7 998zgdh1FnN4Hy0r6Y82mj/sl3FLwqbUtEP1sZ3x0UUfZRsU52aH7bi7aEoEQweT0Se5c6 22gNXnfkqPMI+H6X6iJVYtdLqO6Msr0zCmryEcVWplsR+dw8c95XazJQzPD7hsJKS/GysI oFvlzvy7IZfOCH+vmTw5HYCveiywGQBT2CTFU3pWYb6EopGJgX8YlK0LUYr0Jcg4KdfWj7 ljO2g7r+fl4W6rygIBwCN5AT1LoiSkg80C1aC7yNpuleIAwE+LMG4KLfpw0JTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TRfJC3DCXzyJ5; Sat, 3 Feb 2024 04:08:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41348BZD065677; Sat, 3 Feb 2024 04:08:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41348BrB065674; Sat, 3 Feb 2024 04:08:11 GMT (envelope-from git) Date: Sat, 3 Feb 2024 04:08:11 GMT Message-Id: <202402030408.41348BrB065674@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0fa637ffee21 - main - release: Allow sudo -g anyone and sudo -u anyone -g anytwo List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0fa637ffee21af6c638148cd047f735d91d50d32 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0fa637ffee21af6c638148cd047f735d91d50d32 commit 0fa637ffee21af6c638148cd047f735d91d50d32 Author: Jose Luis Duran AuthorDate: 2023-09-04 16:45:52 +0000 Commit: Warner Losh 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