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 my other VPS it show the IP/host where the connection coming from, but on this VPS it isn't. Anyone have idea why this is not working?


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 -------------------------
How can I fix this /etc/mail/local-host-names and /etc/mail/access?


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've googling for "syslogin_perform_logout: logout() returned an error", most of the results are suggest me to patching the OpenSSH. Is it the only way?

I'm on : cPanel 10.8.1-S114 & CentOS 4.2 i686.

Any help is appreciated.

 

 

 

 

Top