This problem often occurs at work. When you log on to a Linux server using ftp commands on Windows, the following message is displayed: 530 must?mauthenticationbeforeidentifyinguser. After searching online, I finally found a solution. First of all, thanks to the experts who provide the solution. I have used this record for reference only. At present, I know the solution as follows: first, if you are using vsftpd, you can stop it first. Command: se
This problem often occurs at work. When you log on to a Linux server using ftp commands on Windows, the following message is displayed: 530 Must perform authentication before identifying USER. After searching online, I finally found a solution. First of all, thanks to the experts who provide the solution. I have used this record for reference only. Currently, I know the solution is as follows:
First, if you are using vsftpd, stop it with the command: service vsftpd stop. Then you need to edit the gssftp configuration file under/etc/xinetd. d/. The file content is as follows:
# Default: off
# Description: The specified FTP server accepts FTP connections
# That can be authenticated with Kerberos 5.
Service ftp
{
Disable = yes
Flags = REUSE
Socket_type = stream
Wait = no
User = root
Server =/usr/kerberos/sbin/ftpd
Server_args =-l-
Log_on_failure + = USERID
}
In the file, we want to modify the following content:
1. Change disable = yes to disable = no. The default ftp function is invalid. The modification takes effect for the ftp function.
2. Change server_args =-l-a to server_args =-l.
Without-a means: * enable weak authentication *
It indicates that the Kerberos 5 authentication mechanism is used, while ftp generally does not support this authentication mechanism.
Save the modification.
3. Restart the xinetd service. Run the following command (/etc/xinetd. d /):
Service xinetd restart
Service vsftpd restart
Note:
1. We recommend that you do not use root for the user (user = root) in the gssftp configuration file. It is best to use other users.
2. in Linux RHEL 5 or later versions, gssftp may not exist. I have not touched it yet.