Bugzilla – Bug 369
The stdin (-S) option does not indicate that a newline is required.
Last modified: 2009-09-24 20:32:46 MDT
An issue was reported where the following started failing once we upgraded sudo (to 1.7.0): echo -n password | sudo -S id The fix here is pretty easy (don't use the "-n" with echo). Finding the root cause was a little bit trickier. It would be nice if the manpage mentioned that a newline is required when using the stdin (-S) option.
I have added a sentence to that effect to the manual page.