xinetd与chkconfig
时间:2007-01-25 来源:适兕
一同事在写系统管理相关方面的图书章节,遇到这样一个让人迷惘的现象,下面是我们实际的操作:
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# chkconfig telnet on
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# chkconfig xinetd on
[root@wcs ~]# chkconfig --list |grep telnet
telnet: 启用
krb5-telnet: 关闭
[root@wcs ~]# chkconfig xinetd off
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# chkconfig telnet on
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Red Flag DC Server release 5.0 (Trinity)
Kernel 2.6.9-34.21AXhugemem on an i686
login: root
Password:
[root@wcs ~]# cat /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
}
[root@wcs ~]# chkconfig telnet off
[root@wcs ~]# cat /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
能看出些什么东西吗?
也就是说chkconfig 可以控制一切!但是控制xinetd下的服务,是隐式的;和/etc/init.d/*的服务有些不同。如果不启动xinetd,chkconfig --list是看不到的。
同事说:这就是Linux,总是能给你带来惊喜!你总能在她的下面发现一些意外!
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# chkconfig telnet on
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# chkconfig xinetd on
[root@wcs ~]# chkconfig --list |grep telnet
telnet: 启用
krb5-telnet: 关闭
[root@wcs ~]# chkconfig xinetd off
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# chkconfig telnet on
[root@wcs ~]# chkconfig --list |grep telnet
[root@wcs ~]# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Red Flag DC Server release 5.0 (Trinity)
Kernel 2.6.9-34.21AXhugemem on an i686
login: root
Password:
[root@wcs ~]# cat /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
}
[root@wcs ~]# chkconfig telnet off
[root@wcs ~]# cat /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
能看出些什么东西吗?
也就是说chkconfig 可以控制一切!但是控制xinetd下的服务,是隐式的;和/etc/init.d/*的服务有些不同。如果不启动xinetd,chkconfig --list是看不到的。
同事说:这就是Linux,总是能给你带来惊喜!你总能在她的下面发现一些意外!
相关阅读 更多 +