Inger, Slav (S.B.) wrote:
The OS is SuSE Linux 8.2. The system(3) manpage claims that system() will spawn off the shell and then wait for it to return. I've used system() with RedHat and SuSE Linux before, and it worked as advertised. I wonder if there's something special about it getting called from PAM...
-----Original Message----- From: Joe Lewis [mailto:joe@xxxxxxxxx] Sent: Friday, August 29, 2003 3:52 PM To: pam-list@xxxxxxxxxx Subject: Re: PAM not resolving pam_sm_setcred
I believe that effect depends on the specifc implementation and operating system combination. If I were you, I would rather fork(), and have the child exec() the program, calling the specifc script interpreter (such as "perl","/path/to/program","arg1","etc"), and then a waitpid(). Those functions should be available, but then again, I'm not sure, because it really does depend the most on the operating system.
_______________________________________________
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list
_______________________________________________ Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list