VSFTPD禁止用户访问上级目录

VSFTPD禁止用户访问上级目录 - 1
最近从淘宝上收了个二手的柜台机,收回来当下载机用,讲讲关于禁止用户访问上级目录的配置方法。

正文

编辑etc/vsftpd/vsftpd.conf文件,加入一行

chroot_local_user=yes
chroot_list_enable=yes
chroot_list_file=/etc/vsftpd/ftpuser_list

解释参数
chroot_local_user的意思是用户是否限制在用户根目录下
chroot_list_enable是否启用不限制用户名单
chroot_list_file设置不限制用户名单路径
上面我设置不限制名单文件为ftpuser_list,在此文件内的用户名不受目录限制,可以随意访问其他目录。

2 thoughts on “VSFTPD禁止用户访问上级目录”

Leave a Reply to Blogger Owner Cancel reply

Your email address will not be published. Required fields are marked *