However, if any action requires elevated privileges, you will always need to enter a password, no matter which package manager you use.
So, if you’re screaming “I didn’t sign up for this”, I’m afraid you did, simply by choosing Linux.
That said, there may be a way to keep your password available longer, before having to type it again (in terminal only), but I don’t know how to configure it.
If you find any relevant information about that, it might help to some extent.
They [OpenSuse] seem to have re-interpreted the ..._keep actions to mean “remember authentication while the asking process is running”, and added ..._keep_session and ..._keep_always actions to mean “remember for the entirety of this specific login session” and “remember forever”, respectively.
— Added this as separator to better… separate … two different topics, or thought processes —
There are certainly times when a longer timeout would be desirable, and this guide suggests a procedure to achieve just that, using /etc/sudoers to change the timestamp_timeout value.
Though, I’d probably prefer a switch, something like:
That’s true. I gave up on your polkit link and found this instead, which achieves the outcome; something I’d long forgotten about. Plus it might be the closest the OP can get to minimizing the frequency of password use.
Extending the sudo password timeout looks as it might suffice, especially as it also extends to sudo use in pamac; that is, unless someone gives a specific reason that it won’t. I’ll likely do this myself too, now I’ve rediscovered it. As the only user, there are no obvious security implications.
I resently had a VERY strange bug where the directory where my NFS were supposed to mount was suddenly gone. I used “open as root” in dolphin (to recreate it) and suddenly the dir appeared, but nfs still refused to mount.
A reboot fixed it.