[Bug 2121743] Re: sudo-rs does not work using 'watch', regular sudo works fine
Launchpad Bug Tracker
2121743 at bugs.launchpad.net
Thu Sep 25 17:27:40 UTC 2025
This bug was fixed in the package rust-sudo-rs - 0.2.8-1ubuntu4
---------------
rust-sudo-rs (0.2.8-1ubuntu4) questing; urgency=medium
* Pick post 0.2.8 bug fixes from upstream:
- d/p/post_028/allow_equals_incommands.patch (LP: #2123859)
- d/p/post_028/fix_race_between_parent_and_monitor_in_use_pty.patch (LP: #2121743)
- d/p/post_028/forbid_comma_in_envvar.patch
* fix man sudoers alternatives target (LP: #2125483)
-- Ravi Kant Sharma <ravi.kant.sharma at canonical.com> Wed, 24 Sep 2025
11:26:29 +0200
** Changed in: rust-sudo-rs (Ubuntu)
Status: New => 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/2121743
Title:
sudo-rs does not work using 'watch', regular sudo works fine
Status in rust-sudo-rs package in Ubuntu:
Fix Released
Bug description:
I stumbled on this one because my normal sudo was silently replaced
with sudo-rs, with no acknowledgement.
I can reproduce this on 3 different hosts, so it's definitely not
related to local configuration.
Steps to reproduce:
1. Log into a host with a clean shell
2. Run the following `watch -n1 -c -d "sudo zpool status -v"`
3. You will be prompted for the sudo password
4. .... nothing, the command does not run, although the password was successfully accepted
Now, oddly, ^C that command that seems to be running without output,
and run the following:
1. Log out
2. Log back in (clean shell)
3. Run the following: `sudo zpool status -v`, this will work
4. Now run the same command, but _prepend_ the previous 'watch' parameters, this will also work
5. Log out, and back in
6. Run step 4 alone. This will fail.
There appears to be some sort of shell or tty sanitization that's
happening here, and running the initial 'sudo' command to 'warm' the
shell, then re-running the same command under 'watch', seems to work.
Running the full command ('watch' + 'sudo'), does not produce any
output.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2121743/+subscriptions
More information about the foundations-bugs
mailing list