PURE-FTPD in Linux "Login failed: 530 login authentication Failed"

Source: Internet
Author: User
Tags auth ftp local time server port

FTPD is a good FTP software, but today's small set up problems caused PURE-FTPD to appear "Login failed: 530 login authentication Failed", the following we look at the solution to the problem.

   


Again encounter PURE-FTPD "Login failure: 530 login Authentication Failed" problem, this time the reason is that the virtual user UID is less than pure-ftpd.conf minuid value, now detailed description of the entire error-checking process.

In general, I use Yum to install PURE-FTPD, and directly use Puredb to verify the user's login, everything is for convenience and quick. This time also, after installation, add virtual users, bind to the directory/data/www, but this time give the virtual user specified user and group is Apache, its UID and GID is 48:

Apache:x:48:48:apache:/data/www:/sbin/nologin
Nginx:x:498:498:nginx User:/data/cache/nginx:/sbin/nologin

Log on using lftp, and prompt for error messages:

Lftp admin@192.168.1.168:~> ls
----is connecting to the 192.168.1.168 (192.168.1.168) port
<-------------Welcome To PURE-FTPD [PRIVSEP] [TLS]----------
<---220-you are user number 1 allowed.
<---220-local time I s now 08:51. Server port:21.
<---220-this is a private system-no anonymous login
<---your'll be disconnected after minutes O F inactivity.
---> FEAT
<---211-extensions supported:   
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  REST STREAM
<---  MLST type*;size*;sizd*; modify*; unix.mode*; unix.uid*; unix.gid*;unique*;
<---  MLSD
<---  AUTH TLS
<---  PBSZ
<---  prot
<---  utf8 <---  ESTA
<---  PASV
<---  EPSV
<---  SPSV
<---  ESTP
;---211 end.
---> AUTH TLS
<---the security SCHeme isn't implemented
---> OPTS UTF8 on
<---OK, UTF-8 enabled   
---> OPTS mlst type;size;modify; Unix.mode; Unix.uid; Unix.gid;
<---200  mlst OPTS type;size;sizd;modify; Unix.mode; Unix.uid; Unix.gid;unique;
---> User admin
<---331 user admin OK. Password Required
---> Pass XXXX
<---530 Login authentication failed
---> PWD
ls: Logon failure: 530 Logi N Authentication failed
<---530 you aren ' t logged in
---> QUIT
<---221-goodbye. You uploaded 0 and downloaded 0 kbytes.
<---221 Logout.
----Turn off control connections

And the error message found in the/var/log/messages:

Feb 08:46:32 test pure-ftpd: (? @192.168.1.10) [INFO] New connection from 192.168.1.10
Feb 08:46:34 test pure-ftpd: (? @192.168.1.10) [WARNING] Can ' t login as [admin]: Account Disabled
Feb 08:46:38 test pure-ftpd: (? @192.168.1.10) [INFO] Logout.
Feb 08:46:50 test pure-ftpd: (? @192.168.1.10) [INFO] New connection from 192.168.1.10
Feb 08:46:51 test pure-ftpd: (? @192.168.1.10) [WARNING] Can ' t login as [admin]: Account Disabled
Feb 08:46:53 test pure-ftpd: (? @192.168.1.10) [INFO] Logout.

have been thinking, how will appear account disabled, oneself have not done the action of disabling accounts, only a line of view pure-ftpd.conf configuration content, when the view to minuid this row, suddenly wake up, please see:

# Minimum UID for a authenticated user to log in.
Minuid 500

Everything is clear, the PURE-FTPD configuration allows only a UID greater than or equal to 500 to log on to FTP, so the workaround is:
1. Set the minuid of the configuration file to 48, save the restart PURE-FTPD
2. Create a new FTP user, UID greater than 500, reassign the virtual user uid and GID

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.