以一般用户登录系统;
执行命令 sudo apt-get install xinetd;
系统提示输入用户密码,输入密码后安装xinet软件包;
执行命令 sudo apt-get install telnetd;
系统提示输入用户密码,输入密码后安装telnet软件包;
新建一个文件/etc/xinetd.d/telnet,内容如下,并保存;
编辑文件/etc/xinetd.d/telnet,输入以下内容:
# default: on # description: The telnet server serves telnet sessions; it uses \ # unencrypted username/password pairs for authentication. service telnet { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID }
编辑文件/etc/xinetd.conf,并加入如下内容:
instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30
执行命令 sudo /etc/init.d/xinetd restart
在ubuntu11.04的PC机上验证上述方法可行,部分内容有修改。