However, today, when utilising that script, I observed:
==== AUTHENTICATING FOR org.freedesktop.Flatpak.appstream-update ====
Authentication is required to update information about software
Authenticating as: Mr. Roke Julian Lockhart Beedell (RJLB) (RokeJulianLockhart)
Password:
Is this expected? I’d expect it from pkexec or run0 (albeit, as a fallback), but not sudo-1.9.17-6.p2.fc43.
sudo always asks for authentication when first used unless you have edited /etc/sudoers (using visudo) and made it so your user can use sudo without a password.
This is in /etc/sudoers
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
The upper one is the default for the wheel group.
The lower one allows users in the wheel group to use sudo with no password.
However it seems that the error you are getting is from flatpak and not sudo.