Vsftpd has special restrictions on each user.
You just need to create a setting file for that user, and then set it in the file
Add vsftpd. conf
User_config_dir =/etc/vsftpd/vsftpd_user_conf
Create a new file in this folder, which is the same as the user name. vsftpd compares the user name with the user name setting file.
Add files
Local_root = path to directory to change your home directory
Local_max_rate = XXXX can limit the bandwidth of this user.
Cmds_allowed = XXXXX, which can be used by this user
<Strong> # Abor-abort a file transfer </strong>
# Cwd-change working directory
<Strong> # dele-delete a remote file </strong>
# List-list remote files
# MDTM-return the modification time of a file
<Strong> # MKD-make a remote directory </strong>
# NLST-Name List of remote directory
# Pass-send Password
# PASV-enter passive mode
# Port-open a data port
# PWD-print working directory
# Quit-terminate the connection
<Strong> # retr-retrieve a remote file </strong>
# RMD-remove a remote directory
# RNFR-Rename from
# RNTO-Rename
# Site-specific commands
# Size-return the size of a file
# Stor-store a file on the remote host
# Type-set transfer type
# User-send Username
#
# Less common commands:
# Acct *-send account information
# Appe-append to a remote file
# Cdup-CWD to the parent of the current directory
# Help-return help on using the server
# Mode-set Transfer Mode
# Noop-do nothing
# Rein *-reinitialize the connection
# Stat-return server status
# STOU-store a file uniquely
# Stru-set File Transfer Structure
# Syst-return system type
Parameter description: list file or directory list
Stor storage file
Create a directory for MKD
CWD change Directory
Abor terminate a process
Rest resumable upload
--------------------------------------
Online scripts
Local_root =/home/dbbackup
Cmds_allowed = Abor, CWD, list, MDTM, NLST, pass, PASV, port, PWD, quit, RETR, site, size, STOR, type, user, ACCT *, APPE, rein *, stat, syst, rest, cdup
Local_max_rate = 80000000
-----------------------------------------
Enable the following in the prerequisite configuration file:
Tcp_wrappers = Yes
Restrict IP Access, only use the hosts. allow file, do not move the hosts. deny file
Vsftpd: 222.90.72.87 61.150.91.10: Allow
Vsftpd: All: deny