diff options
| author | Jose Luis Duran <jlduran@gmail.com> | 2023-09-04 16:45:52 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-02-03 04:05:49 +0000 |
| commit | 0fa637ffee21af6c638148cd047f735d91d50d32 (patch) | |
| tree | 552dc279b5448b50e59c6b3da8df94538c37369f | |
| parent | 521013e7e89e2856d2f8dd2b1361249ea90d6ac9 (diff) | |
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
| -rw-r--r-- | release/tools/vagrant.conf | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
