https://bugs.kde.org/show_bug.cgi?id=407729

--- Comment #4 from Stuart K. Smith <stuartksm...@gmail.com> ---
Results here are unchanged. Removing neon-settings allows sudoers.d/apt to work
but it does not when neon-settings are installed.

The issue appears to be specific to apt and apt-get. Echoing Harald commands do
indeed work for 'ls' but '/usr/bin/apt' in sudoers.d does NOT work when
neon-settings is installed, but does when neon-settings is not installed. Same
goes for '/usr/bin/apt'. '/usr/bin/add-apt-repository' works with or without
neon-settings installed so it is not related to the '/usr/bin/' folder but
appears to be specific to apt and apt-get. All of the above 'apt' related
commands and others are in a single file together on a single line and all but
apt and apt-get work without a sudo password.

I confirmed this on a VM as well as on my bare metal install. To recap:

While neon-settings is installed:
/bin/ls in /etc/sudoers.d/foo does allow 'sudo ls' to work without a password.
Others, like 'sudo pwrstat' and 'sudo btrfs' that are on my system also work.
Identically formatted '/etc/sudoers.d/apt' containing '/usr/bin/apt' and
'/usr/bin/apt-get' among other commands all work EXCEPT apt and apt-get.
Uninstalling neon-settings allows 'sudo apt' and 'sudo apt-get' to work without
a password with no other modifications.

Could someone specifically test this against /usr/bin/apt and/or
/usr/bin/apt-get to confirm? Test procedure requested please: 

With neon-settings installed, use Harald's series of commands above and
substitute '/usr/bin/apt' for '/bin/ls'. Then enter 'sudo -k' and 'sudo apt
update'. Assuming the result is a password is requested, do CTRL+C to cancel
and then uninstall neon-settings and re-test. Be sure to do 'sudo -k' between
commands if package uninstall is done in the same terminal to force a reset of
the environment. Please report results here. Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to