RHEL5 VSftp Server Based on Virtual User Authentication

Source: Internet
Author: User
1. Create the logins.txt/etc/vsftpd/login.txt file of the virtual user database as follows, even line set password 2, generate vsftpd authentication file # db_load-T-thash-f/etc/vsftpd/logins.txt/etc/vsftpd/login. db # generate the Authentication database file login. db

1. Create the logins.txt file of the virtual user logging database.

The/etc/vsftpd/login.txt file contains the following content:

Set the username for odd lines in the password library file, and set the password for even lines

2. Generate the authentication File For vsftpd

# Db_load-T-t hash-f/etc/vsftpd/logins.txt/etc/vsftpd/login. db # generate the Authentication database file login. db

Note: If the db_load command is not available, install the following RPM package.

3. Set the authentication file to be readable and writable only to the root user.

# Chmod 600/etc/vsftpd/login. db

4. Create the PAM Configuration File required by the virtual user and manually create the vsftpd. vu file.

# Vim/etc/pam. d/vsftpd. vu:

5. Create a system user account used by all FTP virtual user accounts, and set permissions for the home directory of the account.

# Useradd-s/sbin/nologin-d/home/vftp

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.