> 1) for regular salt passwd "man 3 crypt" will detail how to crypt a password. "man 3 getpwnam" will detail how to return a password entry "man 3 strcmp" will detail how to compare two strings. > 2) for MD5 enabled shadow password For more complex passwords you should look into the PAM application programming guide. Keith