cmds_allowed
以逗号分隔的方式指定可用的FTP命令(post login. USER, PASS and QUIT 是始终可用的命令)。

 
其他命令将被屏蔽。这是一个强有力的locking down一个FTP服务器的手段。例如:cmds_allowed=PASV,RETR,QUIT(只允许检索文件)
 
cmds_allowed=ABOR,APPE,CWD,CDUP,FEAT,LIST,MKD,MDTM,PASS,PASV,PWD,QUIT,RETR,REST,

 
STOR,STRU,TYPE,USER(支持上传和下载的断点续传等命令)。

 

List of raw FTP commands

(Warning: this is a technical document, not necessary for most FTP use.)

Note that commands marked with a * are not implemented in a number of FTP servers.

Common commands

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

ABOR

Syntax: ABOR

Aborts a file transfer currently in progress.

ACCT*

Syntax: ACCT account-info

This command is used to send account information on systems that require it. Typically sent after a PASS command.

ALLO

Syntax: ALLO size [R max-record-size]

Allocates sufficient storage space to receive a file. If the maximum size of a record also needs to be known, that is sent as a second numeric parameter following a space, the capital letter "R", and another space.

APPE

Syntax: APPE remote-filename

Append data to the end of a file on the remote host. If the file does not already exist, it is created. This command must be preceded by a PORT or PASV command so that the server knows where to receive data from.

CDUP

Syntax: CDUP

Makes the parent of the current directory be the current directory.

CWD

Syntax: CWD remote-directory

Makes the given directory be the current directory on the remote host.

DELE

Syntax: DELE remote-filename

Deletes the given file on the remote host.

HELP

Syntax: HELP [command]

If a command is given, returns help on that command; otherwise, returns general help for the FTP server (usually a list of supported commands).

LIST

Syntax: LIST [remote-filespec]

If remote-filespec refers to a file, sends information about that file. If remote-filespec refers to a directory, sends information about each file in that directory. remote-filespecdefaults to the current directory. This command must be preceded by a PORT or PASV command.

MDTM

Syntax: MDTM remote-filename

Returns the last-modified time of the given file on the remote host in the format "YYYYMMDDhhmmss": YYYY is the four-digit year, MM is the month from 01 to 12, DD is the day of the month from 01 to 31, hh is the hour from 00 to 23, mm is the minute from 00 to 59, and ss is the second from 00 to 59.

MKD

Syntax: MKD remote-directory

Creates the named directory on the remote host.

MODE

Syntax: MODE mode-character

Sets the transfer mode to one of:

  • S - Stream
  • B - Block
  • C - Compressed

The default mode is Stream.

NLST

Syntax: NLST [remote-directory]

Returns a list of filenames in the given directory (defaulting to the current directory), with no other information. Must be preceded by a PORT or PASV command.

NOOP

Syntax: NOOP

Does nothing except return a response.

PASS

Syntax: PASS password

After sending the USER command, send this command to complete the login process. (Note, however, that an ACCT command may have to be used on some systems.)

PASV

Syntax: PASV

Tells the server to enter "passive mode". In passive mode, the server will wait for the client to establish a connection with it rather than attempting to connect to a client-specified port. The server will respond with the address of the port it is listening on, with a message like:
227 Entering Passive Mode (a1,a2,a3,a4,p1,p2)
where a1.a2.a3.a4 is the IP address and p1*256+p2 is the port number.

PORT

Syntax: PORT a1,a2,a3,a4,p1,p2

Specifies the host and port to which the server should connect for the next file transfer. This is interpreted as IP address a1.a2.a3.a4, port p1*256+p2.

PWD

Syntax: PWD

Returns the name of the current directory on the remote host.

QUIT

Syntax: QUIT

Terminates the command connection.

REIN*

Syntax: REIN

Reinitializes the command connection - cancels the current user/password/account information. Should be followed by a USER command for another login.

REST

Syntax: REST position

Sets the point at which a file transfer should start; useful for resuming interrupted transfers. For nonstructured files, this is simply a decimal number. This command must immediately precede a data transfer command (RETR or STOR only); i.e. it must come after any PORT or PASV command.

RETR

Syntax: RETR remote-filename

Begins transmission of a file from the remote host. Must be preceded by either a PORT command or a PASV command to indicate where the server should send data.

RMD

Syntax: RMD remote-directory

Deletes the named directory on the remote host.

RNFR

Syntax: RNFR from-filename

Used when renaming a file. Use this command to specify the file to be renamed; follow it with an RNTO command to specify the new name for the file.

RNTO

Syntax: RNTO to-filename

Used when renaming a file. After sending an RNFR command to specify the file to rename, send this command to specify the new name for the file.

SITE*

Syntax: SITE site-specific-command

Executes a site-specific command.

SIZE

Syntax: SIZE remote-filename

Returns the size of the remote file as a decimal number.

STAT

Syntax: STAT [remote-filespec]

If invoked without parameters, returns general status information about the FTP server process. If a parameter is given, acts like the LIST command, except that data is sent over the control connection (no PORT or PASV command is required).

STOR

Syntax: STOR remote-filename

Begins transmission of a file to the remote site. Must be preceded by either a PORT command or a PASV command so the server knows where to accept data from.

STOU

Syntax: STOU

Begins transmission of a file to the remote site; the remote filename will be unique in the current directory. The response from the server will include the filename.

STRU

Syntax: STRU structure-character

Sets the file structure for transfer to one of:

  • F - File (no structure)
  • R - Record structure
  • P - Page structure

The default structure is File.

SYST

Syntax: SYST

Returns a word identifying the system, the word "Type:", and the default transfer type (as would be set by the TYPE command). For example: UNIX Type: L8

TYPE

Syntax: TYPE type-character [second-type-character]

Sets the type of file to be transferred. type-character can be any of:

  • A - ASCII text
  • E - EBCDIC text
  • I - image (binary data)
  • L - local format

For A and E, the second-type-character specifies how the text should be interpreted. It can be:

  • N - Non-print (not destined for printing). This is the default if second-type-character is omitted.
  • T - Telnet format control (<CR>, <FF>, etc.)
  • C - ASA Carriage Control

For L, the second-type-character specifies the number of bits per byte on the local system, and may not be omitted.

USER

Syntax: USER username

Send this command to begin the login process. username should be a valid username on the system, or "anonymous" to initiate an anonymous login.

==============================================================

user_config_dir


  这个强大的设置容许覆盖一些在手册页中指定的配置项(基于单个用户的)。用法很简单,最好结合范例。如果你把user_config_dir

  改为/etc/vsftpd_user_conf,那么以chris登录,vsftpd将调用配置文件/etc/vsftpd_user_conf/chris。

  默认值:无

系统Debug分析篇
1.调试命令
strace -p pid
2.跟踪指定进程的PID
gdb -p pid

本文转自pandazhai 51CTO博客,原文链接:http://blog.51cto.com/dreamway/1045610

vsftpd参数cmds_allowed相关推荐

  1. vsftpd通过cmds_allowed进行精确权限控制

    默认情况下vsftp可配置用户是否可读或者可写,如需实现某些精确的权限控制就要用到cmds_allowed参数.如某用户只能上传下载不能覆盖或删除文件等. cmds_allowed参数是控制用户可使用 ...

  2. vsftpd 配置文件参数大全

    vsftpd.conf 用来控制VSFTPD的各项功能.默认状态下,它的位置是/etc/vsftpd.conf. 格式 VSFTPD.conf 的格式非常简单,每行要么是一个注释,要么是一个指令.注释 ...

  3. linux vsftpd上传文件权限,如何用vsftpd实现用户不同权限:只能下载,可上传,管理权限等...

    7.版本:(vsFTPd 1.1.3).pam_mysql-0.5.tar.gz.mysql3.23.54 8.[root@Linux_win vsftpd]# mysql -u vsftpdvirt ...

  4. FTP软件VSFTP配置文件详解

    vsftpd.conf 是vsftpd的配置文件,用来控制vsftpd的各项功能.默认状态下,它的位置是/etc/vsftpd.conf或者在/etc/vsftpd/vsftpd.conf. 然而,你 ...

  5. linux ftp 实例

    转自:http://ludihua.blog.51cto.com/4601284/1596276 1. 匿名服务器的连接(独立的服务器) 在/etc/vsftpd.conf(或在/etc/vsftpd ...

  6. Ubuntu 搭建FTP文件服务器

    最近公司项目中需要搭建FTP文件服务器,主要是用来解决大文件上传问题. 注:以下命令都是在已经关闭防火墙的前提下进行的 1.安装vsftpd $ sudo apt install vsftpd 2.开 ...

  7. FTP服务的登录方式

    FTP服务的登录方式 匿名用户登录 系统用户登录 虚拟用户登录 匿名用户登录 只能通过 2 个用户 (默认:FTP 和 anonymous) 进行登陆 创建匿名登录后的使用者 useradd anon ...

  8. linux系统管理之进程管理(连载)

    进程管理 积土为山,积水为海. 关于进程 process======================================================= What is a proces ...

  9. Centos7 搭建FTP文件服务器

    最近公司项目中需要搭建FTP文件服务器,主要是用来解决大文件上传问题. 注:以下命令都是在已经关闭防火墙的前提下进行的 1.安装vsftpd $ yum install vsftpd -y 2.开启服 ...

最新文章

  1. 老板问:多长时间搞定?开发说3天,測试说2天,然后……
  2. 一个“Internal”牵扯出的代码泄露,阿里云独家回应
  3. Composite(组合)--对象结构型模式
  4. mysql 数据复制停止工作_linux – Mysql GTID复制停止工作
  5. 安装Orchard错误
  6. pve虚拟机导入gho_迁移WIN10和VMW虚拟机到ProXmoX VE(二):PVE设置和迁移windows
  7. 量子艺术、魔法成像、水生政治、性方程式……这些AI“衍生”科目都是啥?...
  8. Codeforces Round #354 (Div. 2) A. Nicholas and Permutation
  9. 麒麟系统安装打印机共享_银河麒麟 惠普打印机驱动怎么安装
  10. 风格迁移篇--AdaAttN:重新审视任意神经风格转移中的注意机制
  11. si4463的寄存器使用说明
  12. java贪吃蛇添加背景音乐_java代码中简单添加背景音乐(亲测有效)
  13. ULC2平台CTA音频调试记
  14. MySQL--管理数据库表相关操作
  15. python运维脚本简书_通过python+selenium3实现浏览器刷简书文章阅读量
  16. C++字符串转换为数值型
  17. android zip文件读写,【Android】Zip文件解压方法
  18. emqtt 启动报错 Erlang closed the connection 查看状态报错 Node 'emq@192.168.*.*' not responding to pings.
  19. 三天一题-07-快速排序
  20. xset 关闭屏幕保护-关闭节电模式

热门文章

  1. 鸡尾酒会算法 --- 公式
  2. HyperLedger Explorer 0.3.9环境搭建
  3. python数据汇总_Python,将数据框中的每日数据汇总到每月和每季度
  4. Java 正则表达式对用户名、手机号、邮箱等验证
  5. Postgresql多行合并一行
  6. Word无法打开该文件,因为文件格式与文件扩展名不匹配。Microsoft Word无法从该位置打开扩展名为.asd的文件。请将此文件移动到原始.asd位置,然后重试。
  7. 黑鲨重装计算机安装无法继续,黑鲨教你重装系统解决电脑开机无法进入系统问题...
  8. 图灵学院 python全栈_图灵学院 Python全系列教程全栈工程师 python视频教程下载
  9. 树莓派 3B+ HDMI 分辨率改不了 和一些坑坑洼洼
  10. 计算机主机与外部接口,核心与外部设备间接口