Debug School

rakesh kumar
rakesh kumar

Posted on

Execute all sudo commands without password

refer
refers

Use the following command to edit the /etc/sudoers file:

sudo visudo
This will open the default text editor (Nano in Ubuntu) for editing this file. All you have to do is to add a line like this in this file:

user_name ALL=(ALL) NOPASSWD:ALL
Enter fullscreen mode Exit fullscreen mode

Image description

Top comments (0)