11 November 2022

Sudo on Ubuntu without requiring a password

Using AWS EC2 Ubuntu as a reference. It has a file by the name...
/etc/sudoers.d/90-cloudimg-ubuntu
It has the following content. With this, the user ubuntu can run sudo without a password.
# User rules for ubuntu ubuntu ALL=(ALL) NOPASSWD:ALL