How to install and use Vsftp in Centos system

  
                

vsftpd is a commonly used FTP tool for Linux users. However, many users are confused about how to install vsftpd. I don't know how to solve this problem. Today Xiaobian brought you the installation and use of vsftp under the centos system. Let's take a look at the users who need it.

First, install vsftp

Installation: yum install vsftpd

Second, start, stop, restart vsftp

Start vsftp:

service vsftpd start

or specify the path (note: /etc/init.d/path may be different): /etc/init.d/vsftpd start

Restart

service vsftpd restart

Stop vsftp:

service vsftpd stop

3. Create ftp user group and directory

1. Create FTP user group ftp -users

groupadd ftp-users

2. Create a user group directory ftp-docs

mkdir /home/ftp-docs

Note that this time Not yet associated with ftp-users.

3, modify permissions

chmod -R 750 /home/ftp-docs

750 groups can only read can not write, to group can write, please change to 770 or 760.

4, specify the folder owner user and user group

chown root: ftp-users /home/ftp-docs

At this time, if the remote user belongs to ftp-users Groups will share this directory.

5, add FTP users do not set their default directory

useradd -g ftp-users -d /home/ftp-docs user1

passwd user1

After the above installation steps, users can log in to the server using vsftp to upload and download files. Users who don't install vsftp will install it in this way.

Copyright © Windows knowledge All Rights Reserved