From 489e53c37b8082c8ecb14b83747bfce04244b3bd Mon Sep 17 00:00:00 2001 From: cemrealpsoy Date: Mon, 20 Jun 2016 10:08:08 +0300 Subject: [PATCH] =?UTF-8?q?pam=20script=20eklendi.=20Pam=20script=20ahenkl?= =?UTF-8?q?eri=20kullan=C4=B1c=C4=B1=20session=20a=C3=A7=C4=B1ld=C4=B1?= =?UTF-8?q?=C4=9F=C4=B1nda=20aktif=20session=20kapat=C4=B1ld=C4=B1g=C4=B1n?= =?UTF-8?q?da=20ise=20pasif=20hale=20getirmektedir.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/share/libpam-script/pam_script_ses_close | 7 +++++++ usr/share/libpam-script/pam_script_ses_open | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100755 usr/share/libpam-script/pam_script_ses_close create mode 100755 usr/share/libpam-script/pam_script_ses_open 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