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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值