PURE-FTPD Authentication Error
PURE-FTPD implementation of user uploaded files belong to Apache users and groups.
Check the UID and GID of the current Apache user first
The code is as follows |
Copy Code |
ID Apache uid=48 (Apache) gid=48 (Apache) group =48 (Apache) |
Then change the MySQL table, the result is as follows:
The code is as follows |
Copy Code |
Mysql> select * from users; +-----------+----------------------------------+-------+-----+----------------+------------+-----------+------- ------+-------------+-----------+------------------------+--------+---------+---------+ | User | Password | Uid | Gid | Dir | Quotafiles | Quotasize | Ulbandwidth | Dlbandwidth | IPAddress | Comment | Status | Ulratio | Dlratio | +-----------+----------------------------------+-------+-----+----------------+------------+-----------+------- ------+-------------+-----------+------------------------+--------+---------+---------+ | ftpuser_1 | d3933b977d1cf7566346d55b54f87121 | 65534 | 31 | /usr | 100 | 50 | 75 | 75 | * | FTP User (for example) | 1 | 0 | 0 | | Cai | B842f1db09ef1bfda2ae1c1f70ec57c8 | 48 | 48 | /home/cai | 100 | 100 | 80 | 5 | * | | 1 | 0 | 0 | | Cai1 | B842f1db09ef1bfda2ae1c1f70ec57c8 | 48 | 48 | /home/cai1 | 100 | 100 | 80 | 5 | * | | 1 | 0 | 0 | +-----------+----------------------------------+-------+-----+----------------+------------+-----------+------- ------+-------------+-----------+------------------------+--------+---------+---------+ 5 rows in Set (0.00 sec) [PHP] |
Use an FTP client to consistently report authentication errors. View the log as follows:
The code is as follows |
Copy Code |
[PHP] Aug 12:53:51 localhost pure-ftpd: (? @58.214.233.214) [INFO] New connection from 58.214.233.214 Aug 12:54:06 localhost pure-ftpd: (? @58.214.233.214) [WARNING] authentication failed for user [Cai] Aug 12:56:27 localhost pure-ftpd: (? @58.214.233.214) [INFO] New connection from 58.214.233.214 Aug 12:56:37 localhost pure-ftpd: (? @58.214.233.214) [WARNING] authentication failed for user [Cai] Aug 12:56:43 localhost pure-ftpd: (? @58.214.233.214) [INFO] Logout. |
Verify that the username and password are correct.
Check the configuration file to find out where the problem is ... The configuration items are as follows:
The code is as follows |
Copy Code |
# Minimum UID for a authenticated user to log in.
Minuid 40 |
ID number greater than 40. No login Allowed
FTP Logon 530 authentication failed
1: Must be through the upper right corner of the "by this new account" to add an account
2: Set as shown in the above image ·