I found a minor bug in the sample application supplied in the PAM Developer Manual http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam_appl-8.html if(argc > 2) { fprintf(stderr, "Usage: check_user [username]\n"); exit(1); } if suppose to be if(argc <2) and not > Is this the right place to post this?? If not sorry Alexandre Sagala