# sudo without password in Ubuntu

{% hint style="danger" %}
please be patinet  You should **never** edit `/etc/sudoers` with a regular text editor, such as [Vim](http://www.vim.org/) or [nano](http://www.nano-editor.org/), because they do not validate the syntax like the [`visudo`](https://www.sudo.ws/man/visudo.man.html) editor.
{% endhint %}

```
sudo visudo


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

```
