6 lines
196 B
Bash
6 lines
196 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ "$PAM_TYPE" != "close_session" ]; then
|
||
|
echo -e "$PAM_USER has successfully logged in on $(hostname) from $PAM_RHOST" | $(dirname $0)/mail.sh "$(hostname) SSH Login: $PAM_USER"
|
||
|
fi
|