我是靠谱客的博主 年轻小兔子,这篇文章主要介绍vsftpd参数设置,并允许root账户登录ftp,现在分享给大家,希望可以做个参考。

一、修改配置文件:/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/selinux/config或/etc/syscofnig/selinux。

SELINUX=disabled

五、允许root账户登录ftp。

修改/etc/vsftpd/user_list和/etc/vsftpd/ftpusers两个设置文件脚本,将root账户前加上#号变为注释(使root账户从禁止登录的用户列表中排除)。

六、重启系统。

最后

以上就是年轻小兔子最近收集整理的关于vsftpd参数设置,并允许root账户登录ftp的全部内容,更多相关vsftpd参数设置内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(125)

评论列表共有 0 条评论

立即
投稿
返回
顶部