欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

vsftpd参数设置,并允许root账户登录ftp

程序员文章站 2022-07-15 11:00:59
...

一、修改配置文件:/etc/vsftpd/vsftpd.conf。

#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
chroot_local_user=YES
chroot_list_enable=NO
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list

local_root=/
allow_writeable_chroot=YES

二、设置开机自启。

systemctl enable vsftpd.service

三、关闭防火墙。

sudo systemctl disable firewalld.service

四、关闭selinux:配置文件/etc/selin

相关标签: linux之路