Environment
OS: Ubuntu 11.04
Kernel version : 2.6.38-11-generic
1. Install Software
sudo apt-get install xinetdtelnetd
2. Modify the /etc/xinetd.conf
defaults
{
# and log_on_failure. The default is thefollowing :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
3. Modify the /etc/xinetd.d/telnet
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
4. Restart the telnet service
sudo /etc/init.d/xinetd restart