Detailed setup of VSFTP based on virtual account

Source: Internet
Author: User
Tags ftp root directory

Virtual user account is to ensure the security of the FTP server, by the VSFTPD server provided by the non-system user account. Virtual user FTP Log in after the specified directory as the FTP root directory. Virtual users have similar capabilities as local users and are gradually replacing local user accounts because of their relatively secure virtual users.

VSFTPD Virtual user Account Setup process:

⑴ set up a virtual account library file.

⑵ generates the VSFTPD authentication database file.

⑶ to establish the PAM profile required by the virtual user.

⑷ establishes the directory to which the virtual user is to be accessed and sets the appropriate permissions.

⑸ set up vsftpd.conf configuration file.

One: Install the VSFTP server:

[Root@lyt ~]# Mkdir/mnt/cdrom

[Root@lyt ~]# mount/dev/cdrom/mnt/cdrom/

[Root@lyt ~]# cd/mnt/cdrom/server/

[Root@lyt server]# RPM-IVH vsftpd-2.0.5-16.el5.i386.rpm #安装vsftp主程序

[Root@lyt server]# Service vsftpd start

[Root@lyt server]# chkconfig vsftpd on #设置开机自动启动

Two: Create the Virtual Account library:

[Root@lyt server]# cd/etc/vsftpd/

[Root@lyt vsftpd]# vim Viruser.txt #创建虚拟的账号库文件

III: Generate VSFTP Authentication database files: (using the Db_load command)

[Root@lyt server]# RPM-IVH db4-utils-4.3.29-10.el5.i386.rpm #安装包含db_load命令的软件包

[Root@lyt server]# db_load-t-t hash–f/etc/vsftpd/viruser.txt/etc/vsftpd/viruser.db #使用该指令将viruser. txt file converted to authentication database text Pieces of viruser.db

[Root@lyt server]# cd/etc/vsftpd/

[Root@lyt vsftpd]# VIM/ETC/PAM.D/VSFTPD

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.