In RedHat, we can follow the steps below to get the result: Modify two files (vsftpd. user_list and vsftpd. ftpusers) to morevsftpd. user_list: Some denied usernames, including root, are listed in the table. Here we delete it, or add # comment out. vivsftpd. user_list -- see the root in it, add # in front of it, and then save the disk to exit vivsftpd. ftpusers
In RedHat, we can get the result through the following steps:
Modify two files (vsftpd. user_list and vsftpd. ftpusers ).
More vsftpd. user_list
Some denied usernames, including root, are listed in the table. Here we delete them, or add # comment out.
Vi vsftpd. user_list -- see the root in it, add # in front of it, and then save the disk and exit
Vi vsftpd. ftpusers -- edit root as well and save the disk and exit.
Service vsftpd restart -- restart FTP
Now, you can log on to FTP using the Linux User and password for various operations.
In Fedora, vsftpd is enabled due to directory and file changes. user_list and vsftpd. ftpusers is split into directories and files, that is, the user_list and ftpusers Files are placed under vsftpd, So we modify the bold part above in a similar way, and change it like this:
Vi vsftpd/user_list -- see the root in it, add # in front of it, and then save the disk and exit
Vi vsftpd/ftpusers -- edit root as well and save the disk and exit
Service vsftpd restart -- restart FTP
Note that all the operations above are performed under the/etc directory. therefore, for Fedora, we can perform another operation under vsftpd. Of course, the statement is changed, which is very simple.