bash-3.2$ hostname
turbolinux.es11.com
[root@turbolinux ~]# bash
[root@turbolinux ~]# clear
[root@turbolinux ~]# cd /etc/xinetd.d
[root@turbolinux xinetd.d]# ls
amanda chargen-stream discard-dgram eklogin klogin rlogin telnet
amandaidx cvs discard-stream ekrb5-telnet krb5-telnet rsh telnet.bak
amidxtape daytime-dgram echo-dgram gssftp kshell rsync time-dgram
chargen-dgram daytime-stream echo-stream gssftp.bak rexec tcpmux-server time-stream
[root@turbolinux xinetd.d]# more telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no #本来是yes
}
[root@turbolinux xinetd.d]# more gssftp
# default: off
# description: The kerberized FTP server accepts FTP connections \
# that can be authenticated with Kerberos 5.
service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/ftpd
server_args = -l #本来是-l -a
log_on_failure += USERID
disable = no #本来是yes
}
[root@turbolinux xinetd.d]# service xinetd restart #重启xinetd服务
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@turbolinux etc]# more securetty.bak #为了让root直接telnet,把/etc/securetty改名另一个文件名.就可以了
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
[root@turbolinux etc]#
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-541354/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-541354/