0

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?

Evert
  • 557

1 Answers1

1

I would search in /etc/sudoers.d folder.

cd  /etc/sudoers.d
grep NOPASSWD *
Oliver Gaida
  • 126
  • 3
  • It will survive systemupdates, it is discussed in https://askubuntu.com/questions/930768/adding-local-content-in-etc-sudoers-d-instead-of-directly-modifying-sodoers-fi – Oliver Gaida Oct 18 '20 at 18:54
  • I looked but didn't get anything, just realized it was because the directory is 700 and I assumed it just didn't exists. Thank you! – Evert Oct 18 '20 at 18:56