Vsftpd cmds_allowed permission Control

Source: Internet
Author: User

Vsftpd cmds_allowed
Cmds_allowed = Abor, CWD, list, MDTM, MKD, NLST,
Pass, PASV, port, PWD, quit, RETR, RMD, RNFR,
RNTO, site, size, STOR, type, user, ACCT,
APPE, cdup, help, mode, Noop, rein, stat, STOU, stru, syst

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-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-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

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.