What program just asks specified user's password (even if calling user is root) and returns exit code 0 if it is OK and 1 if it fails?
Is there such a simple program (i.e. not "sudo" with edited config) to do the task?
Also I'm looking for program that will log in user (checking its password, writing to auth.log), but not execute any programs (like
login), simply return the exit code.