Package: cloud.debian.org Severity: important Dear Maintainer,
I built a couple of instances using the bullseye test image (debian-11-amd64-daily-20210728-717, or ami-0311ee36441c551b3 in eu-west-2). In the sudoers file there is a duplicate includedir statement; at the end of the file you will find the following contents: """ # See sudoers(5) for more information on "@include" directives: @includedir /etc/sudoers.d # Added by cloud-init v. 20.4.1 on Wed, 28 Jul 2021 20:40:05 +0000 #includedir /etc/sudoers.d """ If the sudoers.d directory is empty or only contains simple User_Spec entries then there is no issue with this, but with aliases and similar things which cannot be duplicated you end up with syntax errors when calling sudo, for example: example : Jul 29 08:38:09 : test : parse error in /etc/sudoers.d/example near line 9 ; PWD=/ ; USER=root ; Effectively, cloud-init should NOT install this additional line into the sudoers file as it already ships with an equivalent line.