Custom pam_ module that does not return Exit(N) like pam_exec

Hi,

I have wrote small binary that should be executed during “sudo” request. What I dont like is that pam_exec will write in /var/log/secure something like: pam_exec(sudo:auth): /…/binary.so failed: exit code 1

I would rather control what is written in /var/log/secure and if needed connect somehow to PAM module without PAM_Exec, if you have some recommendations for GO library or how to accomplish that?

Thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.