Public bug reported:

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.

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

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

Title:
  sudo-rs does not work using 'watch', regular sudo works fine

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


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

Reply via email to