1 2 3 4 5 6 7 8
#!/bin/sh if [ "$PAM_TYPE" != "open_session" ] then exit 0 fi ntfy send "$PAM_USER@$(hostname -f)" "Login Succesful"