title: check unix username and password in a shellscript
body: <p>I want to check in a shell script if a local unix-user's passed username and password are correct. What is the easiest way to do this?</p>
  
  <p>Only thing that I found while googling was using 'expect' and 'su' and then checking somehow if the 'su' was successful or not.</p>