在CentOS上禁用ProFTP
时间:2020-01-09 10:44:45 来源:igfitidea点击:
首先,在/etc/xinetd.d/目录中查看是否有一个名为psa_ftp的文件。如果没有,我们可能必须在/etc/xinetd.conf文件中进行此更改。
以根用户身份打开文件,然后查找以下部分:
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
}
如上所示,将disable = no行更改为disable = yes。
运行以下命令以重新启动xinetd
/etc/init.d/xinetd restart

