syslogin_perform_logout: logout() returned an error
Hello,I put the following code on the last line of .bash_profile
Code:
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" myemail@gmail.com
On LogWatch email report I got the following:
Code:
--------------------- sendmail Begin ------------------------ ERROR: Could not open /etc/mail/local-host-names ERROR: Could not open /etc/mail/access Message Size Distribution: Range # Msgs KBytes 0 - 10k 0 0 10k - 20k 0 0 20k - 50k 0 0 50k - 100k 0 0 100k - 500k 0 0 500k - 1Mb 0 0 1Mb - 2Mb 0 0 2Mb - 5Mb 0 0 5Mb - 10Mb 0 0 10Mb+ 0 0 ---------------------------------- TOTAL 0 0 ---------------------- sendmail End -------------------------
Still on LogWatch:
Code:
Users logging in through sshd: root: dsl-xxx-xxx.xxx.xxx.xx (xxx.xxx.xxx.xxx): 1 time **Unmatched Entries** syslogin_perform_logout: logout() returned an error
I'm on : cPanel 10.8.1-S114 & CentOS 4.2 i686.
Any help is appreciated.