1. 程式人生 > 實用技巧 >centos proftp_在CentOS上禁用ProFTP

centos proftp_在CentOS上禁用ProFTP

centos proftp

centos proftp

I realize this is probably only relevant to about 3 of the readers, but I’m posting this so I don’t forget how to do it myself! In my efforts to ban the completely insecure FTP protocol from my life entirely, I’ve decided to disable the FTP service running on the How-To Geek server, which is running the CentOS operating system.

我意識到這可能只與大約3位讀者有關,但是我釋出了這篇文章,所以我不會忘記自己怎麼做! 為了徹底禁止完全不安全的FTP協議,我決定禁用在執行CentOS作業系統的How-To Geek伺服器上執行的FTP服務。

For whatever reason, I couldn’t find a place in plesk to do this, and I just despise everything about plesk anyway… so I took the manual approach.

無論出於什麼原因,我都無法在plesk中找到合適的位置,而且無論如何我都鄙視plesk的所有內容……所以我採用了手動方法。

First, look in your /etc/xinetd.d/ directory and see if there’s a file named psa_ftp in there. If not, you might have to make this change in your /etc/xinetd.conf file.

首先,在您的/etc/xinetd.d/目錄中檢視是否有一個名為psa_ftp的檔案。 如果沒有,您可能必須在/etc/xinetd.conf檔案中進行此更改。

Open up the file as root, and look for the following section:

以根使用者身份開啟檔案,然後查詢以下部分:

service ftp{ disable = yes socket_type = stream protocol = tcp wait = no user = root instances = UNLIMITED server = /usr/sbin/in.proftpd server_args = -c /etc/proftpd.conf}

服務ftp {禁用=是socket_type =流協議= tcp等待=否使用者=根例項=無限伺服器= /usr/sbin/in.proftpd server_args = -c /etc/proftpd.conf}

Change the disable = no line to disable = yes as shown above.

如上所示,將disable = no行更改為disable = yes。

Run the following command to restart xinetd

執行以下命令以重新啟動xinetd

/etc/init.d/xinetd restart

/etc/init.d/xinetd重新啟動

Good to go!

好去!

翻譯自: https://www.howtogeek.com/howto/linux/disable-proftp-on-centos/

centos proftp