问题 I have a program written in C running on a embedded Linux, sometimes it want to check the password of a system user. If I can get the crypt salt of /etc/passwd , I can use crypt() to check the correction of user password. Is there any script of shell can help me check the password? Such as check_passwd username password, then it return a value for correct or incorrect? Thanks! 回答1: As suggested above, the correct way to handle this is to use pluggable authentication modules. You have to add