<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 8, 2012, at 9:37 PM, Bob Ippolito wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Sun, Jan 8, 2012 at 5:30 PM, Jan Schaumann <span dir="ltr"><<a href="mailto:jschauma@netmeister.org">jschauma@netmeister.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Jason Hellenthal <<a href="mailto:jhell@dataix.net">jhell@dataix.net</a>> wrote:<br>
<br>
> I don't see an advantage here besides "I don't have to type my password".<br>
<br>
</div>For starters / in addition to what others have already said, you don't<br>
have to actually have to _have_ a password hash sitting on the server in<br>
question.  In some cases it's unacceptable to have your password hash be<br>
exposed to the host in question.</blockquote><div><br></div><div>Well, the password hash could be safely sitting in an LDAP server somewhere.</div><div><br></div><div>The bigger issue is that the server that you're sudo-ing on gets your password in plaintext that could be snooped by a clever enough attacker with access to your pty or if they have superuser you've really lost because it would be even easier to get your password in plaintext by replacing the sudo binary or screwing with PAM.</div></div></blockquote><div><br></div><div>if an attacker has access to a pty of your user ... even if you have password-less sudo, it would be simple enough for the attacker to write a sudo wrapper that throws an stty with a password prompt, and 99% of your users will follow their conditioning and type a password when sudo prompts for it, regardless of system setup.</div><div><br></div><div>password is a flawed protocol, we have the tech to fix it, but until the social conditioning of providing a secret when asked is broken, this is all pretty meaningless.</div><div><br></div><div>-matt</div></div></body></html>