No password with Sudo

I like to run some sudo commands with enter everytime my password.

There are a few ways to doing it, one is editing the sudoers file with visudo like so:

Check if this two lines are In the file

That means that every file we created inside the sudoers.d directory it will be read for the sudoers file

sudoers.d

Create a new file, Example

Now in our new file add (replace user with the real username)

Save and close. This should work out of the box, run a program and kill it with

Now you will see that the program is terminated without asking for your root password

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode