pam script eklendi. Pam script ahenkleri kullanıcı session açıldığında aktif session kapatıldıgında ise pasif hale getirmektedir.

This commit is contained in:
cemrealpsoy 2016-06-20 10:08:08 +03:00
parent 25afb824c1
commit 489e53c37b
2 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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