mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-14 06:12:19 +03:00
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:
parent
25afb824c1
commit
489e53c37b
2 changed files with 14 additions and 0 deletions
7
usr/share/libpam-script/pam_script_ses_close
Executable file
7
usr/share/libpam-script/pam_script_ses_close
Executable 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
|
7
usr/share/libpam-script/pam_script_ses_open
Executable file
7
usr/share/libpam-script/pam_script_ses_open
Executable 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
|
Loading…
Reference in a new issue