Whenever I start the Synaptic package manager, it asks for a password. How do I make it skip that dialog?
I'm using Debian 9.8.
I originally thought that editing
/usr/share/polkit-1/actions/com.ubuntu.pkexec.synaptic.policy would do it (see the old versions of this answer if you want to see that method), but I was told that that would get reset whenever Synaptic gets updated. You would also need to do it for every single program.
A better solution was given here: Create the file
/etc/polkit-1/localauthority/50-local.d/99-nopassword.pkla (or any other file name, just the location and ending has to be the same) and fill it with:
[No password prompt] Identity=unix-group:sudo Action=* ResultActive=yes
I tried it in a Debian VM and it successfully skipped the prompt for Synaptic.