To add an ftp account in Linux, follow these steps:
(1) tools used to remotely log on to the Linux Server are free and open-source and can be easily downloaded from the website.
(2) Open putty, enter the Server IP address, and enter the super administrator root as prompted. Then the system will enter the password. Note that the password will not be displayed on the screen at this time, after entering the keyboard, press Enter.
Step 1: run the cd and ls commands to check the location of nologin. The usual location is/usr/sbin/nologin or/sbin/nologin.
Input cd/sbin and then input ls to see a lot of related information ,,
Use the useradd-d/ftp-s/sbin/nologin ftpadmin command to add an account and passwd ftpadmin to change the password. /Ftp is your ftp directory, and ftpadmin is your ftp user name.
Usermod-s/sbin/nologin test // user test cannot be telnet, and only ftp
Usermod-s/sbin/bash test // user test returns to normal
Usermod-d/test // change the main directory of user test to/test
Use chown-R to modify permissions. Use the vi command to edit the ftp configuration file. There are many files in the configuration file and you need to find them slowly. # The following is a comment, change "anonymous_enable = YES" in the configuration file to "anonymous_enable = NO" to cancel Anonymous logon. Cancel the annotator before the following configuration: local_enable = YES
Write_enable = YES
Chroot_local_user = YES
Save the changes, Press ESC, enter wq, and press enter to exit the editing status. If the service vsftpd start is unsuccessful, stop the service first and then start the service vsftpd stop. Edit the (vi) etc/vsftpd/chroot_list file and add the Restricted Users. Each user name has a row. Now an ftp user has been added. You can enter the ftp address in the address bar of my computer, and then enter the account and password as required, which is the directory previously defined by the ftp user.