Monday, 26 January 2015

Disabling the password prompt for sudo users


Often, GNU/Linux users come across the sudo utility. But on executing any command with sudo requests, users have to provide their own passwords once, which can then be used afterwards.

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

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.

No comments:

Post a Comment