I am facing a problem using pam_exec.so library.I have created script for session.
I am facing a problem using pam_exec.so library.I have created script my.sh in /usr/local/bin/my.sh.
The script contains --------------------------- #!/bin/sh echo "hello" exit 0 ------------------------- Permission 777 is given to script. and i have added the following in /etc/pam.d/system-auth session required /usr/local/bin/my.sh log=/etc/logfile but when i login into the system the script does not execute. Please help me to solve the problem. |
Quote:
Quote:
Code:
open_session optional pam_exec.so seteuid /path/to/script Code:
open_session optional pam_exec.so debug seteuid /path/to/script |
All times are GMT -5. The time now is 06:20 AM. |