How can I permanently grant sudo access to a user?

949 Views Asked by At

I created a service to automaticle initialize some scripts for me, but when I try to run, they do not work very well... keep asking my sudo password.

I tried to add my user on sudors with sudo visudo, but nothing changed.

My commands:

sudo visudo
--changing the file
vitor ALL=(ALL) NOPASSWD:ALL
ctrl+x
y
1

There are 1 best solutions below

0
On

@Vitor Felipe

your addition should work fine.

You have to start a new shell (a new terminal), or in some cases, logout and log back into your graphical environment, in order for the visudo changes to take effect.