Note: Do not use line breaks or spaces. Otherwise, it will be ineffective ..
# ABOR-abort a file transfer
# CWD-change working directory
# DELE-delete a remote file
# LIST-list remote files
# MDTM-return the modification time of a file
# MKD-make a remote directory
# 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
# RETR-retrieve a remote file
# RMD-remove a remote directory
# RNFR-rename from
# RNTO-rename
# SITE-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
Very useful permission control statements for VSFTPD
Maybe some permissions may be unsatisfactory when using FTP. the hope I can provide is useful to you!
Let's take a look at the following examples:
1. Upload only. Cannot be downloaded, deleted, or renamed.
Cmds_allowed = FEAT, REST, CWD, LIST, MDTM, MKD, NLST, PASS, PASV, PORT, PWD, QUIT, RMD, SIZE, STOR, TYPE, USER, ACCT, APPE, CDUP, HELP, MODE, NOOP, REIN, STAT, STOU, STRU, SYST
2. download only. You cannot upload, delete, or rename a file. Write_enable = NO
3. you can only upload, delete, or rename a file. Cannot be downloaded. Download_enable = NO
4. you can only download, delete, or rename a file. Cannot upload.
Cmds_allowed = FEAT, REST, CWD, LIST, MDTM, MKD, NLST, PASS, PASV, PORT, PWD, QUIT, RMD, RNFR, RNTO, RETR, DELE, SIZE, TYPE, USER, ACCT, APPE, CDUP, HELP, MODE, NOOP, REIN, STAT, STOU, STRU, SYST
The above two points are well controlled, but 1 and 4 are not so well controlled!
I have provided methods 1 and 4. of course, you can also talk about how you implement the control of 1 and 4. we can communicate with each other!
Next I will talk about some specific parameters!
CWD-change working directory change directory
LIST-list remote files column Directory
MKD-make a remote directory to create a folder
NLST-name list of remote directory
PWD-print working directory displays the current working directory
RETR-retrieve a remote file download file
STOR-store a file on the remote host
DELE-delete a remote file: delete an object
RMD-remove a remote directory delete directory
Rename RNFR-rename from
Rename RNTO-rename
The above are common parameters. let's take a look! The following are all the parameters in the column for your reference!
# ABOR-abort a file transfer cancel file transfer
# CWD-change working directory change directory
# DELE-delete a remote file delete an object
# LIST-list remote files column Directory
# MDTM-return the modification time of a file
# MKD-make a remote directory to create a folder
# NLST-name list of remote directory
# PASS-send password
# PASV-enter passive mode
# PORT-open a data port open a transmission PORT
# PWD-print working directory: displays the current working directory
# QUIT-terminate the connection to exit
# RETR-retrieve a remote file download file
# RMD-remove a remote directory
# RNFR-rename from
# RNTO-rename
# SITE-site-specific commands
# SIZE-return the size of the file returned by 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
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.