Igor Pashev <pashev.igor@gmail.com> wrote: > su? su doesn't distinguish between a locked password and an incorrectly entered one. Would like to know the locked status before trying su so that the program can either fall back to sudo or give an error message more informative than just "incorrect password".