← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2121837] Re: ignoring files that end in .conf in /etc/sudoers.d

 

Hi, thanks for taking the time to report this issue.

I confirm the behaviour (including on Noble), but the sudoers man page
makes no mention of the .conf extension. Which documentation are you
referring to?

** Changed in: sudo (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/2121837

Title:
  ignoring files that end in .conf in /etc/sudoers.d

Status in sudo package in Ubuntu:
  Incomplete

Bug description:
  On Ubuntu 25.04 (sudo version 1.9.16p2-1ubuntu1.1), files in
  /etc/sudoers.d/ with a .conf extension are not honored by sudo, even
  though the documentation states that only files ending in .conf (or
  with no dot at all) should be read. My /etc/sudoers contains
  @includedir /etc/sudoers.d, and visudo -cf
  /etc/sudoers.d/filename.conf parses OK, but only files with no dot in
  the name are actually used. Permissions and ownership are correct
  (root:root 0440). Changing the filename to remove .conf makes it work
  immediately.

  To be clear, I did not change any contents, permissions, or ownership
  of the file to make it start working correctly.  I simply renamed it
  from brian_cset.conf, to brian_cset (without the .conf).  Prior to
  doing that, "visudo -cf /etc/sudoers.d/brian_cset.conf" responded with
  "parsed OK" but "visudo -c" did not list the file.  After renaming the
  file, "visudo -c" lists the file, and it lists as "parsed OK" after,
  to be clear, doing nothing other than removing the .conf at the end,
  which is supposed to be allowed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/2121837/+subscriptions



References