vsftpd为每个虚拟用户配置不同的目录

vsftpd.conf中加入
guest_username=virtual
user_config_dir=/etc/vsftpd_user_config
user_sub_token=$USER

/etc/vsftpd_user_config目录下为每个用户建一个配置文件,文件名与用户名相同,内容中必须有
local_root=/home/ftp/$USER

这里的/home/ftp/$USER可以改为你想配置给用户的任意目录
vsftp | 评论(0) | 引用(0) | 阅读(3818)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 请输入左侧的字母,不区分大小写