Configuration of the virtual user

Source: Internet
Author: User

I. Creating data for a virtual User 1. Create a file in any directory Login_user (file name can be taken), this file should be reserved for each user 2 lines, the 1th row is the user name, the 2nd line is the user password Vi/etc/vsftpd/login_user
Cat/etc/vsftpd/login_user
2. Install the DB tool, normally the system is not preinstalled in the system 2.1 download the installation package db-4.6.21.tar.gz and pull to the server
2.2 Installation
Tar zxvf db-4.6.21.tar.gz cd db-4.6.21 Find out if there are db_load this file 3. Using the DB toolcreate data for a virtual userDb_load-t-T hash-f/etc/vsftpd/login_user/etc/vsftpd_login_dbchmod 600/etc/vsftpd
Two. Configure the PAM validation editor/etc/pam.d/vsftpd This file three. Create a local user map edit the/etc/vsftpd/vsftpd.conf file, modify or add the following configuration guest_username=ftpguest_enable= yesguest_username=ftpanonymous_enable=nolocal_enable=yeschroot_local_user=yespam_service_name=/etc/pam.d/ vsftpd# #存放用户配置文件的目录user_config_dir =/etc/vsftpd_user_conf
Iv. setting up user directories and permissions inCreate zw123 text file in/etc/vsftpd_user_conf directory, store zw123 the user's configuration# #打开vsftpd的全局写权限write_enable =yes# #打开文件上载权限anon_upload_enable =yes# #打开建立目录的权限anon_mkdir_write_enable =yes# #打开删除/ Renamed permissions anon_other_write_enable=yes# #zw123这个用户的主目录local_root = Path
V. Restart VSFTPD server/ETC/INIT.D/VSFTPD restart






From for notes (Wiz)

Configuration of the virtual user

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.