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