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