[Bug 2136942] Re: The visudo command fails to read files passed via stdin
Launchpad Bug Tracker
2136942 at bugs.launchpad.net
Fri Feb 20 00:16:54 UTC 2026
This bug was fixed in the package rust-sudo-rs - 0.2.12-0ubuntu1
---------------
rust-sudo-rs (0.2.12-0ubuntu1) resolute; urgency=medium
* New upstream version (LP: #2141927)
* Fixes:
- Cockpit cannot escalate privileges with sudo-rs [--askpass unsupported]
(LP: #2122048)
- wrong /dev/pts owner for login shell (and $HOME) (LP: #2131153)
- The visudo command fails to read files passed via stdin (LP: #2136942)
- renable test `test_build_run_context` (LP: #2120544)
* New patches:
- enable-pwfeedback-by-default.patch: Cherry-pick enable pwfeedback by
default, thanks Tim Hutt.
- correct-backspace-for-multibyte-characters.patch: Cherry-pick correct
backspace for multibyte characters, thanks Marc Schoolderman.
* Changes:
- d/control: Add python3:any as dependency for apport package hook.
- d/sudo-rs.manpages: Sort entry order alphabetically.
-- Simon Johnsson <simon.johnsson at canonical.com> Mon, 16 Feb 2026
14:24:39 +0100
** Changed in: rust-sudo-rs (Ubuntu Resolute)
Status: Fix Committed => Fix Released
--
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:
Fix Released
Status in rust-sudo-rs source package in Questing:
Triaged
Status in rust-sudo-rs source package in Resolute:
Fix Released
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