To add an ftp account in Linux, follow these steps:

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.