This article describes how to solve the vsftpd local user logon password error. For more information, see VSFTP.
Today, I found that my virtual machine's vsftp could not be logged on using the local user name, so I re-configured it, but it failed to be configured many times.
530 Login incorrect.
Login failed
The solution is:
Pam_service_name = vsftp
Modify
Pam_service_name = ftp
After vsftpd is restarted, the local user can log on normally.
However, it is strange that there is a file named vsftp in the/etc/pam. d/directory, but there is no file named ftp. Instead, the configuration file must be set to ftp to be valid.
The final configuration file is:
Copy codeThe code is as follows:
Listen = YES
Anonymous_enable = NO
Local_enable = YES
Check_shell = NO
Write_enable = YES
Local_umask = 022
Dirmessage_enable = YES
Use_localtime = YES
Xferlog_enable = YES
Connect_from_port_20 = YES
# Chroot_list_enable = YES
Pam_service_name = ftp
Disable anonymous logon and enable local user logon. no virtual user is configured.