Server to build FTP is the primary task. Virtual user logon is higher than the local user login. Because the vsftpd virtual user, is not the system's account, also only used to support the VSFTPD service, so there is no license to his access to the system is necessary, than directly set the local user login account for the landing System user security is high.
First, the article main points:
Virtual User Configuration using Pam Data mode under 1.64-bit systems
2. Modify the key script, is the compilation successfully passed. The necessary steps to install the configuration description process in detail.
3. Full configuration instance, Centos5.6 compile installation vsftpd-2.3.4 (configure local user login, virtual user login)
Download
wget http://xiazai.xiazaiba.com/Soft/V/vsftpd-2.3.4.tar.gz
Tar xzvf vsftpd-2.3.4.tar.gz
CD vsftpd-2.3.4
Key step: Because the 64-bit system's so file path changes, you must change the vsf_findlibs.sh script to convert Lib to lib64
You can modify it manually, or you can perform a batch modification.
Sed-i ' s/lib\//lib64\//g ' vsf_findlibs.sh is not performed here, the 64-bit system is unable to make a successful
mkdir/var/ftp/
Useradd-d/var/ftp FTP
Chown root.root/var/ftp/
chmod og-w/var/ftp/
Make
Make install
cd/etc/
Cp/etc/vsftpd/vsftpd.conf.rpmsave vsftpd.conf
Second, the detailed installation configuration description process:
1, the first is to install Pam
Yum Install Pam-devel Db4-utils
2. Installation VSFTPD
Yum Install vsftpd*
3. See if VSFTPD is loading Pam
Ldd/usr/sbin/vsftpd
If ibpam.so.0 =>/lib/libpam.so.0 appears in the output, the load succeeds
4. Generate user authentication database files
1 Create Loguser.txt, the format is as follows (user, password, user, password ...). )
Userid
Pass