[Bug 2136942] Re: The visudo command fails to read files passed via stdin

Patrik Lundquist 2136942 at bugs.launchpad.net
Wed Jan 7 08:44:27 UTC 2026


** Tags added: questing

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-sudo-rs in Ubuntu.
https://bugs.launchpad.net/bugs/2136942

Title:
  The visudo command fails to read files passed via stdin

Status in rust-sudo-rs package in Ubuntu:
  New

Bug description:
  Expected output (as seen in 24.04, 25.04):

  $ cat /etc/sudoers | visudo -c -f -
  stdin: parsed OK
  /etc/sudoers.d/90-cloud-init-users: parsed OK
  /etc/sudoers.d/README: parsed OK

  Actual output (as seen in 25.10):

  $ cat /etc/sudoers | visudo -c -f -
  visudo: unable to open -: No such file or directory (os error 2)

  Ansible's community.general.sudoers module hits this bug because it
  relies on sudo being able to consume stdin to do validation.

  Bug is fixed upstream:

  https://github.com/trifectatechfoundation/sudo-rs/issues/1358

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




More information about the foundations-bugs mailing list