linux 下的服務 /etc/xinetd.d

來源:互聯網
上載者:User

 

 etc/xinetd.d目錄
在Linux系統中有一個終極服務程式inetd,大部分的網路服務都是由他啟動的,如chargen、echo、finger、talk、telnet、wu-ftpd等…,在舊版本他的配置是在/etc/inetd.conf中配置的。
在新版本,他就改成了一個xinetd.d目錄。
在xinetd.d目錄中,每一個服務都有一個相應的配置文檔,我們以telnet為例,說明一下各個配置行的含義:
service telnet
{
socket_type=stream
wait=no
user=root
server=/usr/sbin/in.telnetd
log_on_failure+=USERID
disable=yes
}
第一行,說明該配置用來配置telnet服務。
第二行,說明Socket連線類型是stream,也就是TCP
第三行,是指不等待到啟動完成
第四行,是指以root使用者啟動服務進程
第五行,是指服務進程是/usr/sbin/in.telnetd
第六行,是用於做一些出錯日誌
第七行,是指禁止遠方telnet,假如需要開放則將該配置改為:disable=no
修改了xinetd的配置,需要重啟xinetd才能夠生效,有兩種方法能夠實現:
1) 執行如下命令:
/etc/rc.d/init.d/xinetd restart
2) 執行如下命令:
killall -HUP xinetd
註:
1)若還不能telnet,請檢查/etc/hosts.deny,將ALL:ALL注釋掉。
2)若使用虛擬機器,請注意VPC的網卡配置是否正確。
============================================================

修改gssftp:

# /etc/xinetd.d

# ls

# vi 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 -a
                              log_on_failure  += USERID
                             disable         = off

                            }

changes to:

                       service ftp
                           {
                              flags           = REUSE
                              socket_type     = stream
                              wait            = no
                              user            = root
                              server          = /usr/kerberos/sbin/ftpd
                              server_args     = -l

                              log_on_failure  += USERID
                              disable         = on

                            }    

用":wq" to save config file.

# more gssftp         -> to check the content of configuration file

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.