Sunday, January 24, 2010

Ubuntu: Synaptic without password

WARNING: It is not good practice to avoid entering passwords for applications. If you feel lazy (like me) do this, but only on your laptop. Do not use this on desktops, specially servers.

To use synaptic package manager without having to enter password you just need to add a line to /etc/sudoers file. Add the following line at the end of the file.

username ALL=NOPASSWD: /usr/sbin/synaptic

"username" - is your username on the machine.

You can do the same to run any other application without having to enter your password.

e.g. You can add the following line to make application gshutdown work without password
username ALL=NOPASSWD: /usr/bin/gshutdown



No comments: