首页 > 服务器 > Web服务器 > 正文

vsftpd中锁定用户目录

2019-10-13 18:40:01
字体:
来源:转载
供稿:网友
vsftpd中锁定用户目录 如果您在学习中遇到问题欢迎在下面的评论中留言,我们会尽全力解答您的问题。


vsftpd锁定虚拟用户目录
配置/etc/vsftpd/vsftpd.conf
[root@hostname]#vi /etc/vsftpd/vsftpd.conf
-------------------------------------------------------------------
chroot_list_enable=YES
# (锁定目录)
#chroot_list_enable这里为YES时,将调用下面文件
chroot_list_file=/etc/vsftpd.chroot_list
------------------------------------------------------------------
创建一个/etc/vsftpd.chroot_list 文件把要锁定的加进去就可以
[root@hostname]#touch /etc/vsftpd/chroot_list
编辑需要限制目录的用户
[root@hostname]#vi /etc/vsftpd/chroot_list
user
test
admin
这样user,test,admin就不可以改变目录了

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表