Installation and configuration of VSFTPD under Linux series-centos

Source: Internet
Author: User

Bad Environment: CentOS 7.0

Gossip is not much, just cut to the chase.

First step: Install VSFTPD, run at terminal
install vsftpd

Test whether the installation was successful

start

If prompted:

for vsftpd:    [ok]

Indicates success.

Step two: Edit the vsftpd configuration file
vi /etc/vsftpd/vsftpd.conf

Empty the file, and then add the following:

listen=YES  background=YES  anonymous_enable=NO  local_enable=YES  write_enable=YES  local_umask=022  anon_upload_enable=NO  anon_mkdir_write_enable=NO  dirmessage_enable=YES  xferlog_enable=YES  connect_from_port_20=YES  chown_uploads=NO  xferlog_file=/var/log/vsftpd.log xferlog_std_format=YES  async_abor_enable=YES  ascii_upload_enable=YES  ascii_download_enable=YES  ftpd_banner=Welcome to hao32 FTP servers pam_service_name=vsftpd chroot_local_user=NO  chroot_list_enable=YES  chroot_list_file=/etc/vsftpd/vsftpd.chroot_list 
Step three: Terminal run the following command
start 

If the following sentence appears:

Starting vsftpd for VSFTPD: [OK]

Is successful, if not, use this statement:

/etc/rc.d/init.d
Fourth Step: Add an FTP user

FTP default We use the system user, now we add user Csuldw, point to directory /home/csuldw , permission is nologin , is not give shell permissions, does not affect the FTP.

-d-s

If displayed:
Useradd:warning:the home directory already exists.
Not copying any file from the Skel directory into it.

Don't bother, just tell you that the directory you point to already exists, which does not affect
To set up a group of directories and their files, you can also use other groupings, as follows:

chown -R csuldw.csuldw /home/csuldw

Set the user csuldw password, their own settings can be, the command is as follows:

passwd csuldw

Add user Csuldw so that /etc/vsftpd/vsftpd.chroot_list users can log in and not jump out of their own directory

echo‘csuldw‘
Fifth step: Test

Configuration Complete! Test Landing.

FTP host : Server IP address as input: ftp 192.168.0.1
FTP user : CSULDW
ftp password : You have just set the

Note: When doing FTP, it's best to shut down the firewall.

stop

By default, the root account is not allowed to upload.
To implement root permission upload:

vi /etc/vsftpd/user_list  #root注释掉vi /etc/vsftpd/ftpusers  #root注释掉

Client software upload times wrong:

553 Could not create file.

Cause: No permission write is caused.
Solve:

777 /var/ftp/pub

Installation and configuration of VSFTPD under Linux series-centos

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.