I'm having trouble finding an example on how to use pam_exec
to run an external program that will authenticate users when they log in.
I have the following in my pam.d
file:
auth required pam_exec.so debug log=/tmp/aa /path/to/myscript
What should my script contain to allow or disallow authentication?
0: NO "authentication failed"
– Angarsk