1、安装vsftpd 服务 和 db
<!--[endif]-->

<!--[if !supportLists]-->2、<!--[endif]-->添加三个虚拟用户 devadmin sales saleadm

3、用db_load工具将列表文件转化为DB数据库文件

<!--[if !supportLists]-->4、<!--[endif]-->建立FTP 访问的目录及虚拟用户对应的系统用户

5、建立根目录,任何用户都可访问,且可以下载/var/ftp/soft

建立用户sales 和 saleadm 访问的目录及文件

<!--[if !supportLists]-->6、<!--[endif]-->设置用于虚拟用户的PAM文件

7、修改vsftpd.conf 主配置文件,启用虚拟用户支持

<!--[if !supportLists]-->8、<!--[endif]-->为不同用户建立独立的配置文件
<!--[endif]-->

匿名用户
<!--[endif]-->

devadmin 配置

为用户sales 配置独立的配置文件

<!--[endif]-->
为用户saleadm 配置独立的配置文件
<!--[endif]-->

<!--[if !supportLists]-->9、<!--[endif]-->重启vfstpd服务
<!--[endif]-->

<!--[if !supportLists]-->10、<!--[endif]-->验证结果
匿名用户登录

Sales登录,只能下载/复制 不能进行其他操作

Saleadm登陆对、var/market 有管理权限

<!--[endif]-->

<!--[endif]-->
Devadm登陆管理/var/ftp/soft

总结

试验成功!!!!!!!!!!
常见问题:
1、关防火墙
2、开关闭sclinux setenforce 0 或者 添加防火墙规则
3、会出现文件权限问题 甚至文件权限
4、出现:不允许一个用户使用一个以上用户名与服务器或共享资源的多重连接
注:更多精彩教程请关注山村电脑教程栏目,山村电脑办公群:189034526欢迎你的加入