简体   繁体   中英

How can I permanently grant sudo access to a user?

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

@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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM