By default, vsftp does not allow root users to log on. you can modify the limits to solve this problem.
First, find the vsftp configuration directory.
[[Email protected] vsftpd] # PWD/etc/vsftpd [[email protected] vsftpd] # lschroot_list ftpusers user_list vsftpd. conf using [[email protected] vsftpd] #
Modify
[[Email protected] vsftpd] # Cat ftpusers # users that are not allowed to login via FTP # rootbindaemonadmlpsyncshutdownhaltmailnewsuucpoperatorgamesnobody
Modify
[[Email protected] vsftpd] # Cat user_list # vsftpd userlist # If userlist_deny = No, only allow users in this file # If userlist_deny = Yes (default ), never allow users in this file, and # Do not even prompt for a password. # note that the default vsftpd Pam config also checks/etc/vsftpd/ftpusers # for users that are denied. # rootbindaemonadmlpsyncshutdownhaltmailnewsuucpoperatorgamesnobody
The above two are the list of accounts that are not allowed to be used by vsftp by default. Let's talk about deleting the root account in the file, or add a # above to restart the vsftpd service.
The Root Account of the vsftp server cannot be used for FTP logon.