From 8ad4c032fd8e460bee2fc90916ca812d337d171b Mon Sep 17 00:00:00 2001 From: "q5sys (JT)" Date: Wed, 12 Feb 2020 15:24:27 +0000 Subject: [PATCH] allow searches for packages without root *Installing packages still requires root*, however simply searching to see if a package is available from the CLI does not impact the system in anyway, so I fail to see why it should be protected by root. A non root user can search online at https://voidlinux.org/packages/, so there's no reason they shouldn't be able to from the CLI. --- core-files/usr/local/etc/sudoers.d/trident | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core-files/usr/local/etc/sudoers.d/trident b/core-files/usr/local/etc/sudoers.d/trident index d3248aa..fe0607d 100644 --- a/core-files/usr/local/etc/sudoers.d/trident +++ b/core-files/usr/local/etc/sudoers.d/trident @@ -28,3 +28,5 @@ Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER" # Allow passwordless access to run life preserver (wheel group only) %wheel ALL = NOPASSWD: /usr/local/bin/life-preserver +# Allow passwordless access to search for packages (install still requires password) +%wheel ALL = NOPASSWD: /bin/xbps-query