Timeline for answer to Why does password entering work in a piped sudo command? by MadHatter
Current License: CC BY-SA 3.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 27, 2015 at 13:01 | comment | added | Bob |
While this answer is correct in that sudo's stdin is still connected to the terminal with the example command, that's not directly relevant to how it gets its password: by default sudo will not request passwords via stdin nor will it show the prompt via stderr -- you can try 2>/dev/null to confirm that. Instead, sudo directly accesses the tty.
|
|
| Oct 27, 2015 at 10:18 | vote | accept | Karel | ||
| Oct 27, 2015 at 21:45 | |||||
| Oct 27, 2015 at 8:37 | history | answered | MadHatter | CC BY-SA 3.0 |