On 06/08/2021 02:47, Ross Vandegrift wrote:
Hi Chris, 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.
The result is that both lines include the files in the /etc/sudoers.d directory, hence the "duplicated" definitions and syntax errors.
Cheers, Chris -- Chris Boot bootc@debian.org