免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2705 | 回复: 3
打印 上一主题 下一主题

[FTP] 关于vsftp+pam-mysql用户目录的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-31 12:52 |只看该作者 |倒序浏览
这个问题似乎很多很多人问过了,但是我实在是没有找到合适我的方式。
情况是这样,现在验证已经没有问题了,就是用户目录需要每个用户分开。例如user1只能进user1目录,user2只能进user2目录。经过在网上查,几乎所有的回答都是使用user_config_dir=/etc/vsftpd_user_config,但是这个必须得每个用户都设置一个用户文件。而实际上我这边有几千个用户,我不可能每个都去设置。有没有其他好点的办法啊?

论坛徽章:
0
2 [报告]
发表于 2009-08-31 13:18 |只看该作者
原帖由 shanmin 于 2009-8-31 12:52 发表
这个问题似乎很多很多人问过了,但是我实在是没有找到合适我的方式。
情况是这样,现在验证已经没有问题了,就是用户目录需要每个用户分开。例如user1只能进user1目录,user2只能进user2目录。经过在网上查,几 ...


user_sub_token
This option is useful is conjunction with virtual users. It is used to automatically generate a home directory for each virtual user, based on a template. For example, if the home directory of the real user specified via guest_username is /home/virtual/$USER, and user_sub_token is set to $USER, then when virtual user fred logs in, he will end up (usually chroot()'ed) in the directory /home/virtual/fred. This option also takes affect if local_root contains user_sub_token.

论坛徽章:
0
3 [报告]
发表于 2009-08-31 17:22 |只看该作者
原帖由 wolfg 于 2009-8-31 13:18 发表


user_sub_token
This option is useful is conjunction with virtual users. It is used to automatically generate a home directory for each virtual user, based on a template. For example, if the  ...

开始没有理解user_sub_token的意思,现在明白了,谢谢~~!!!

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
4 [报告]
发表于 2009-08-31 17:26 |只看该作者
原帖由 wolfg 于 2009-8-31 13:18 发表


user_sub_token
This option is useful is conjunction with virtual users. It is used to automatically generate a home directory for each virtual user, based on a template. For example, if the  ...



学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP