Configure upload and download of vsftp virtual user Login

Source: Internet
Author: User
Tags ftp access

为了系统的安全,创建vsftp虚拟用户,其本身在Linux系统中存在一个映射账号,该账号不允许登录系统,其它虚拟账号通过数据库映射到该账号。 紧接着上次的实验,进行vsftp虚拟用户的配置。网址如下 http://blog.51cto.com/13760226/2140963 实验环境:linux6.5、虚拟win7/10`vim /etc/vsftp` //进入vsftp目录`vim vuser` //创建文本

`db_load -T -t hash -f vuser vuser.db`                      // db_load 命令  -T 转换 -t hash 转换类型为hash  -s 转换的文件夹 + 转换后的名字+db `chmod 600 vuser` //定义vuser只能管理员自己读写chmod 600 vuser.db  // 定义vuser.db只能管理员自己读写useradd -d /opt/vuser -s /sbin/nologin vuser      //-d 创建家目录、-s 不能在shell终端登陆、最后跟创建的名字vuser

`vim /etc/pam.d/vsftpd.vu `  创建pam认证进入后直接插入下面两行`auth required pam_userdb.so db=/etc/vsftpd/vuser`   必须验证pam_userdb.so模块=/etc/vsftpd/vuser`account required pam_userdb.so db=/etc/vsftpd/vuser`  必须解释 pam_userdb.so模块=/etc/vsftpd/vuservim /etc/vsftp/vsftpd.conf       //进入配置文件修改其中内容G到行尾guest_enable=YES     允许来宾访问guest_username=vuser   来宾名字pam_service_name=vsftpd.vu   pam服务认证的名称=vsftpd.vu




OK, virtual user FTP Access is here, thank you for reading ~

Configure upload and download of vsftp virtual user Login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.