Ubuntu: How EC2 instances don't require password for sudo for Ubuntu user but 'include' is commented?


There is a file in /etc/sudoers.d/90-cloudimg-ubuntu that makes the Ubuntu user passwordless for sudo.

However, in /etc/sudoers the 'include' line is commented.

How then is that config loaded?


The line is not commented - it's a C-style include directive. From man sudoers:

Including other files from within sudoers

It is possible to include other sudoers files from within the sudoers file currently being parsed using the #include and #includedir directives.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »