diff --git a/usr/share/libpam-script/pam_script_ses_close b/usr/share/libpam-script/pam_script_ses_close new file mode 100755 index 0000000..65b45b3 --- /dev/null +++ b/usr/share/libpam-script/pam_script_ses_close @@ -0,0 +1,7 @@ +#!/bin/bash +if [ -n $PAM_USER ]; then + if [ $PAM_USER != "root" ]; then + sudo python3 /opt/ahenk/ahenkd.py logout $PAM_USER + echo "gittim" >> /home/lider/cemre.log + fi +fi diff --git a/usr/share/libpam-script/pam_script_ses_open b/usr/share/libpam-script/pam_script_ses_open new file mode 100755 index 0000000..103e54f --- /dev/null +++ b/usr/share/libpam-script/pam_script_ses_open @@ -0,0 +1,7 @@ +#!/bin/bash +if [ -n $PAM_USER ]; then + if [ $PAM_USER != "root" ]; then + sudo python3 /opt/ahenk/ahenkd.py login $PAM_USER + echo "geldim" >> /home/lider/cemre.log + fi +fi