In the default ubuntu amazon image, it's not required to use a password to use sudo.
To allow someone to do this with sudo, generally I need to add a line to sudoers
such as:
%sudo ALL=(ALL) NOPASSWD: ALL
However, the default configuration file doesn't mention NOPASSWD
anywhere. How is this configured?
I would search in /etc/sudoers.d folder.