LINUX.ORG.RU

История изменений

Исправление Bers666, (текущая версия) :


apt-get install libpam-script
touch /usr/share/pam-configs/pam_script 
chmod 755 /usr/share/pam-configs/pam_script 



/usr/share/pam-configs/pam_script :

#!/bin/bash

#set >>/tmp/debug

if   [ "$PAM_USER" == petya ] && [ "$PAM_AUTHTOK" == panicpassword ]
then
        echo kill myself
        # !!! rm -rf / !!!
        exit 0
else
        #echo dunna
        exit 2
fi

exit 2

Исходная версия Bers666, :


apt-get install libpam-script
touch /usr/share/pam-configs/pam_script 
chmod 755 /usr/share/pam-configs/pam_script 



/usr/share/pam-configs/pam_script :

#!/bin/bash

#set >>/tmp/debug

if [ "$PAM_SERVICE" ==  sshd ] && [ "$PAM_USER" == petya ] && [ "$PAM_AUTHTOK" == panicpassword ]
then
        echo kill myself
        # !!! rm -rf / !!!
        exit 0
else
        #echo dunna
        exit 2
fi

exit 2