Well I've had time to figure this out and it was too easy!
The sudoers file allows you to run the sudo command and to run it without a password!
Using my favorite user fred to run the synaptic program requires a root password. And using the command sudo synaptic
gives me this kind of output...
$ sudo synaptic
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type.
fred is not in the sudoers file. This incident will be reported.
That looks kinda scary! Good thing, I'm the administrator
Now, I use the visudo
command ( as root ) to add fred to the sudoers file...
fred ALL=(ALL) NOPASSWD: ALL
Saved the changes with the command: :wq!
logged in as user fred and ran the command: sudo synaptic
Presto! synaptic starts up with no password required.
Now for one better, I decide to put an synaptic icon on the desktop that can be run as sudo user.
Just make a new link to application as normal.
Right click on the icon / Properties
Select: Application tab
Select: Command:sudo synaptic
Now I can click on the icon and run an application with no root password.