|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo -S does not read password from stdin | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | buzo <buzo+sudo> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.9.5 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
buzo
2021-02-11 06:33:22 MST
I'm unable to reproduce your problem and there weren't any changes between 1.9.5p1 and 1.9.5p2 that would explain it. Here's what I see with 1.9.5p2 on Ubuntu 20.04.2: $ echo test123 | sudo -Sk id [sudo] password for testuser: uid=0(root) gid=0(root) groups=0(root) And here it is with no tty: $ tty not a tty $ echo test123 | sudo -Sk id [sudo] password for testuser: uid=0(root) gid=0(root) groups=0(root) Are you using pre-built packages or did you compile sudo yourself? Sorry for wasting your time, it was a bug in my script, not in sudo. I somehow managed to call ssh with the -n option, which obviously does not let the password through to sudo. :( |