Two user logon configurations for 64-bit centos 5.6 compiler installation vsftpd-2.3.4

Source: Internet
Author: User
Tags ftp centos

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

Related Article

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.