How to configure FTP in Linux

Source: Internet
Author: User
1. run the rpm-qa | grepvsftpd command to check whether the ftp is installed. if ftp is not installed, run the yum-yinsta command.

 

1. run the rpm-qa | grep vsftpd command to check whether the ftp has been installed. if ftp is not installed, run yum-y install vsftpd to install it. (use apt-get install vsftpd in ubuntu)

2. service vsftpd start

To enable FTP to automatically start upon startup, run the command chkconfig -- level 35 vsftpd on.

3. set ftp permissions

Vi/etc/vsftpd. conf
Change anonymous_enable = YES to anonymous_enable = NO
ESC return, input ": wq" to save and release

4. add an ftp account and Directory

Useradd-d/alidata/www/wwwroot-s/sbin/nologin pwftp
Passwd pwftp
Chmod-R 755/alidata/www/wwwroot
Chown-R pwftp/alidata/www/wwwroot
/Etc/rc. d/init. d/vsftpd restart
Then use the account pwftp password 123456
After testing, you can log on to ftp. The directory is/alidata/www/wwwroot.

Related Article

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.