I have been trying to use pam_exec.so module to send e-mails whenever someones logs in using ssh but it gives exit code 8 and code is not executed. I tried to use the suggested solution in here SSH Login Alert Using pam_exec and the error message disappeared but the script is not executed. I even used only echo command in the script to be executed just to make it simple and to make sure that the script gets executed. Any one has any idea what might be the problem?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.