Vsftpd configuration cannot be logged on (it won't work after a long time, please consult)

Source: Internet
Author: User
Vsftpd configuration cannot be logged on (it won't work for a long time, please consult) -- Linux Enterprise Application-Linux server application information. The following is a detailed description. After setting the parameters, you cannot log on with hngd1 or hngd2 on the client. The following message is displayed:
Connected to 192.168.100.111.
220 (vsFTPd 2.0.5)
User (192.168.100.111 :( none): hngd1
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
The procedure is as follows:
A vi login.txt
Hngd1
111111
Hngd2
222222
B. Generate the authentication File For vsftpd.
Db_load-T-t hash-f./login.txt/etc/vsftpd/vsftpd_login.db
C. Create the PAM Configuration File required by the virtual user.

Create vsftpd. vu
Auth required/lib/security/pam_userdb.so/etc/vsftpd/vsftpd_login
Account required/lib/security/pam_userdb.so/etc/vsftpd/vsftpd_login
# Useradd-d/home/ftpsite virtual
# Chmod 700/home/ftpsite
F. Set the vsftpd. conf configuration file:
Anonymous_enable = YES
Local_enable = YES
Write_enable = YES
Local_umask = 022
Anon_upload_enable = YES
Dirmessage_enable = YES
Xferlog_enable = YES
Connect_from_port_20 = YES
Xferlog_std_format = YES
Listen = YES
Guest_enable = YES
Guest_username = virtual
Pam_service_name = vsftpd. vu
Userlist_enable = YES
Tcp_wrappers = YES

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.