Disabling password prompt for sudo users

Image
Most often GNU/Linux users come across the sudo utility that allows users to run programs with the security privileges of another user (normally the superuser, or root). Its name is a concatenation of the su command (which grants the user a shell of another user, normally the superuser) and “do”, or take action. But on executing any command with sudo requests the user to provide his own password once and can be used afterwards. For that to occur the particular user must be in sudoers file (refer to my post regarding adding user for sudo privileges.

$ sudo vim /etc/sudoers
[sudo] password for anoop:

To disable this sudo password prompt edit the /etc/sudoers file as follows.

sudo vim /etc/sudoers and change

%sudo   ALL=(ALL:ALL) ALL to

%sudo   ALL=(ALL:ALL) NOPASSWD: ALL

Save the file and check for the changes. You are now free to execute anything without entering passwords.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s