安装internet superserver: xinetd.
root@zhoudh-desktop:/# apt-get install xinetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
xinetd
0 upgraded, 1 newly installed, 0 to remove and 166 not upgraded.
Need to get 135kB of archives.
After unpacking 369kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
xinetd
Install these packages without verification [y/N]? y
Get:1 http://cn.archive.ubuntu.com feisty/main xinetd 1:2.3.14-1ubuntu1 [135kB]
Fetched 135kB in 44s (3009B/s)
Selecting previously deselected package xinetd.
(Reading database ... 90150 files and directories currently installed.)
Unpacking xinetd (from .../xinetd_1%3a2.3.14-1ubuntu1_i386.deb) ...
Setting up xinetd (2.3.14-1ubuntu1) ...
Stopping internet superserver: xinetd.
Adding `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd'
Starting internet superserver: xinetd.
安装telnet server
安装软件
root@zhoudh-desktop:/# apt-get install telnetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
telnetd
0 upgraded, 1 newly installed, 0 to remove and 166 not upgraded.
Need to get 0B/42.0kB of archives.
After unpacking 147kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
telnetd
Install these packages without verification [y/N]? y
Selecting previously deselected package telnetd.
(Reading database ... 90170 files and directories currently installed.)
Unpacking telnetd (from .../telnetd_0.17-35ubuntu1_i386.deb) ...
Setting up telnetd (0.17-35ubuntu1) ...
安装telnet client
root@zhoudh-desktop:/# apt-get install telnet
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
telnet
0 upgraded, 1 newly installed, 0 to remove and 166 not upgraded.
Need to get 0B/65.6kB of archives.
After unpacking 188kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
telnet
Install these packages without verification [y/N]? y
Selecting previously deselected package telnet.
(Reading database ... 90182 files and directories currently installed.)
Unpacking telnet (from .../telnet_0.17-35ubuntu1_i386.deb) ...
Setting up telnet (0.17-35ubuntu1) ...
Login incorrect
zhoudh-desktop login: zhoudh
Password:
Last login: Mon Dec 10 16:43:40 2007 from 192.168.200.250 on pts/2
Linux zhoudh-desktop 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
zhoudh@zhoudh-desktop:~$
允许root登录
修改配置文件
root@zhoudh-desktop:~# vi /etc/pam.d/login
auth requisite pam_securetty.so
-〉#auth requisite pam_securetty.so
网上例子用nano /etc/pam.d/login。
用root登录
由于ubuntu不提供root用户,所以这个只能在debain上测试
localhost login: root
Password:
Last login: Tue Dec 11 06:10:06 2007 from 192.168.200.250 on pts/0
Linux localhost 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
1 failure since last login.
Last was Tue 11 Dec 2007 06:10:37 AM EST on pts/0.
localhost:~#