Is it possible to make Ubuntu remember the password for any program after the first time it asks. I get asked for the password for Synaptic, for making a usb bootable, for connecting to the wifi network, for opening gparted and even to go to the bathroom.
Is there a way to just tell it to ask once forever or just tell it to not ask (Without going to root account. I want to keep using my own account)
There is also the sudo configuration file, where you can allow applications to be started without password-query. How to use it, is described here: http://www.gratisoft.us/sudo/man/1.8.0/sudoers.man.html
Warning: Though very unlikely, messing with sudoers configuration could lock you out of your system or open doors for others. Always double check and be sure of what you're doing.
As a safety precaution you can open a root shell and keep it open until you have tested your changes. Open a shell and type
sudo su, you will be asked for your password. Your shell is now a root shell. Also you can make a backup of your
/etc/sudoersfile to be able revert changes.
The basic use is you edit it by invoking visudo in shell:
The latter of wich will open your shell default editor with the file. Normal syntax is:
$PATHvariable is user dependent and sudo is not, the full path to the command is needed in sodoers list (note it says '/sbin/halt' not just 'halt'). You can find out the full path using the
whereiscommand - as in
whereis haltwhich will most likely return '/sbin/halt'.
Generelly speaking that's bad practise. You are asked for a reason. Installing software with synaptic ist potentially harmfull. As is tempering with partitions which can lead to an unbootable system and massive data loss. It also makes a hackers job much easier. But you're free to do it on your own risk.