cloud-init sudoers bug?

churnd

Active Member
Aug 11, 2013
43
2
28
When using cloud-init with a Debian 10 VM, there seems to be a bug or glitch in the sudoers file:

>>> /etc/sudoers.d/90-cloud-init-users: syntax error near line 11 <<<

Opening it with visudo looks like the attachment. If I remove line 11, it's fine. Just wondering where that file comes from & how to fix this from popping up? Also, why the repeated entries for debian user?

Screen Shot 2019-12-18 at 2.43.24 PM.png
 
Hi, this file gets auto-generated by cloud-init, seems the write was aborted or the file corrupted in another way.

This is a issue for the cloudinit package from Debian 10, so maybe it would be good to report a bug there or to the cloud init project upstream. https://bugs.launchpad.net/cloud-init/+filebug

We cannot support all client implementations of cloud init directly, I'm afraid.