Public bug reported:

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

** Affects: rust-sudo-rs (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- The sudo command fails to read files passed via stdin
+ The visudo command fails to read files passed via stdin

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

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

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to