您的位置:首页 > 运维架构 > Linux

Linux下配置vsftp.conf实现ftp协议控制用户不能切换到根目录以外的目录

2014-10-16 17:27 351 查看
看到很多文章里面介绍在Linux中配置ftp服务,但是根据文章里面的配置方法配置之后并不能实现控制用户不能切换到根目录以外的目录。

仔细阅读vsftpd.conf文件中的注释,我发现,正确的配置方法如下:

# 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().

chroot_local_user=YES

chroot_list_enable=NO

# (default follows)

chroot_list_file=/etc/vsftpd/chroot_list

然后在chroot_list文件中添加禁止切换目录的用户名(每行一个)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Linux ftp服务器