[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#991629: cloud.debian.org: Bullseye AWS AMI: cloud-init creates duplicate #includedir in /etc/sudoers



On Fri, Aug 06, 2021 at 09:07:02AM +0100, Chris Boot wrote:
> On 06/08/2021 02:47, Ross Vandegrift wrote:
> > On Thu, Jul 29, 2021 at 10:24:22AM +0100, Chris Boot wrote:
> > > 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
> >    ^
> > 
> > Is this a copy/paste mistake?  It looks commented out.
> 
> It's isn't a copy/paste mistake, nor is it commented out. This was the
> syntax used up to Buster, but from Bullseye the new @includedir syntax is
> preferred (but sudo accepts both). That's presumably why it was changed in
> sudo.

👍, thanks.

This is fixed upstream in 21.1, though many other changes are included.  I
didn't look through the list carefully.  The fix for this particular bug is
trivial, I staged it here:
 https://salsa.debian.org/rvandegrift/cloud-init/-/tree/debian/bullseye

Either a targeted fix or a new upstream release will need to wait for a stable
update at this point.

Ross


Reply to: