ProgrammerAH

Programmer Guide, Tips and Tutorial

Skip to content

[Four Solutions] FTP Login Error: 530 Login incorrect.Login failed”

I. Problems

Due to the project requirements: you need to build an FTP. After setting up the folder, create a new user and grant corresponding permissions. The following error message appears when I log in to the FTP site.

My running environment: centos8.2 64bit

II. Solutions (Four Methods)

There are four ways to collect online information. Please choose different solutions according to your own problems

(1) the host to log in does not create an account and its corresponding permissions.

cat /etc/passwd

If you find that you don’t have the account you created, create another one.

(2) after entering the correct password, it still reports an error. Users’ passwords can be modified;

Command: passwd username

Try signing in again. If you still report an error, look again (3)

(3) comment out pam_shells.so

FTP allows local users to log in. As a result, this error is always reported when logging in. I found a lot of information on the Internet, and finally solved it:
backup:

 cp /etc/pam.d/vsftpd /etc/pam.d/vsftpd.bak

Modification:

vim /etc/pam.d/vsftpd

Comment out the following line:

#auth   required        pam_shells.so

Then log in again, it’s OK.

(4) check whether cat /etc/shells has your users

Check what the home directory of your login account corresponds to the login shell. Mine is /sbin/nologin user name: Password: user ID: group ID: annotative Description: Home Directory: login shell

cat /etc/passwd,

Check whether cat /etc/shells has your user’s home directory and login shell, without adding, saving and exiting.

cat /etc/shells
This entry was posted in How to Fix and tagged Big data, FTP Login Error, Pay e-commerce platform, vsftpd on 2022-07-07 by Robins.

Post navigation

← How to Solve Ubuntu18 Compile Kalibr Error (Various Errors) [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist →

Recent Posts

  • MAFIA: 1- OpenFlow statistics (Counters, Timestamps)(mafia-sdn/p4demos/demos/1-openflow/1.1-statistics/p4src/of.p4)
  • LDSC: Could not open Corces_ATAC_1000Gv3_ldscores/Corces_ATAC.1.1.l2.ldscore[./gz/bz2]
  • Gradle Package Project Lombok Not Working: No serializer found for class com.qbb.User and no properties discovered to create BeanSerializer……
  • [Solved] PCH Warning: header stop not at file scope
  • pymysql Error: File “/usr/local/lib/python2.7/site-packages/PyMySQL-1.0.2-py2.7.egg/pymysql/connections.py”, line 167 SyntaxError: invalid syntax
Proudly powered by WordPress