sudo without password in Ubuntu

please be patinet You should never edit /etc/sudoers with a regular text editor, such as Vim or nano, because they do not validate the syntax like the visudo editor.

sudo visudo


%sudo   ALL=(ALL:ALL) NOPASSWD:ALL

Last updated