
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