📄 vsftpd.conf.5
字号:
.B local_umaskThe value that the umask for file creation is set to for local users. NOTE! Ifyou want to specify octal values, remember the "0" prefix otherwise the valuewill be treated as a base 10 integer!Default: 077.TP.B max_clientsIf vsftpd is in standalone mode, this is the maximum number of clients whichmay be connected. Any additional clients connecting will get an error message.Default: 0 (unlimited).TP.B max_login_failsAfter this many login failures, the session is killed.Default: 3.TP.B max_per_ipIf vsftpd is in standalone mode, this is the maximum number of clients whichmay be connected from the same source internet address. A client will get anerror message if they go over this limit.Default: 0 (unlimited).TP.B pasv_max_portThe maximum port to allocate for PASV style data connections. Can be used tospecify a narrow port range to assist firewalling.Default: 0 (use any port).TP.B pasv_min_portThe minimum port to allocate for PASV style data connections. Can be used tospecify a narrow port range to assist firewalling.Default: 0 (use any port).TP.B trans_chunk_sizeYou probably don't want to change this, but try setting it to something like8192 for a much smoother bandwidth limiter.Default: 0 (let vsftpd pick a sensible setting).SH STRING OPTIONSBelow is a list of string options..TP.B anon_rootThis option represents a directory which vsftpd will try to change intoafter an anonymous login. Failure is silently ignored.Default: (none).TP.B banned_email_fileThis option is the name of a file containing a list of anonymous e-mailpasswords which are not permitted. This file is consulted if the option.BR deny_email_enableis enabled.Default: /etc/vsftpd.banned_emails.TP.B banner_fileThis option is the name of a file containing text to display when someoneconnects to the server. If set, it overrides the banner string provided bythe.BR ftpd_banneroption.Default: (none).TP.B ca_certs_fileThis option is the name of a file to load Certificate Authority certs from, forthe purpose of validating client certs. Regrettably, the default SSL CA certpaths are not used, because of vsftpd's use of restricted filesystem spaces(chroot). (Added in v2.0.6).Default: (none).TP.B chown_usernameThis is the name of the user who is given ownership of anonymously uploadedfiles. This option is only relevant if another option,.BR chown_uploads ,is set.Default: root.TP.B chroot_list_fileThe option is the name of a file containing a list of local users whichwill be placed in a chroot() jail in their home directory. This option isonly relevant if the option.BR chroot_list_enableis enabled. If the option.BR chroot_local_useris enabled, then the list file becomes a list of users to NOT place in achroot() jail.Default: /etc/vsftpd.chroot_list.TP.B cmds_allowedThis options specifies a comma separated list of allowed FTP commands (postlogin. USER, PASS and QUIT and others are always allowed pre-login). Othercommands are rejected. This is a powerful method of really locking down anFTP server. Example: cmds_allowed=PASV,RETR,QUITDefault: (none).TP.B cmds_deniedThis options specifies a comma separated list of denied FTP commands (postlogin. USER, PASS, QUIT and others are always allowed pre-login). If a commandappears on both this and.BR cmds_allowedthen the denial takes precedence. (Added in v2.1.0).Default: (none).TP.B deny_fileThis option can be used to set a pattern for filenames (and directory namesetc.) which should not be accessible in any way. The affected items are nothidden, but any attempt to do anything to them (download, change intodirectory, affect something within directory etc.) will be denied. This optionis very simple, and should not be used for serious access control - thefilesystem's permissions should be used in preference. However, this optionmay be useful in certain virtual user setups. In particular aware that ifa filename is accessible by a variety of names (perhaps due to symboliclinks or hard links), then care must be taken to deny access to all the names.Access will be denied to items if their name contains the string given byhide_file, or if they match the regular expression specified by hide_file.Note that vsftpd's regular expression matching code is a simple implementationwhich is a subset of full regular expression functionality. Because of this,you will need to carefully and exhaustively test any application of thisoption. And you are recommended to use filesystem permissions for anyimportant security policies due to their greater reliability. Supportedregex syntax is any number of *, ? and unnested {,} operators. Regexmatching is only supported on the last component of a path, e.g. a/b/? issupported but a/?/c is not.Example: deny_file={*.mp3,*.mov,.private}Default: (none).TP.B dsa_cert_fileThis option specifies the location of the DSA certificate to use for SSLencrypted connections.Default: (none - an RSA certificate suffices).TP.B dsa_private_key_fileThis option specifies the location of the DSA private key to use for SSLencrypted connections. If this option is not set, the private key is expectedto be in the same file as the certificate.Default: (none).TP.B email_password_fileThis option can be used to provide an alternate file for usage by the.BR secure_email_list_enablesetting.Default: /etc/vsftpd.email_passwords.TP.B ftp_usernameThis is the name of the user we use for handling anonymous FTP. The homedirectory of this user is the root of the anonymous FTP area.Default: ftp.TP.B ftpd_bannerThis string option allows you to override the greeting banner displayedby vsftpd when a connection first comes in.Default: (none - default vsftpd banner is displayed).TP.B guest_usernameSee the boolean setting.BR guest_enablefor a description of what constitutes a guest login. This setting is thereal username which guest users are mapped to.Default: ftp.TP.B hide_fileThis option can be used to set a pattern for filenames (and directory namesetc.) which should be hidden from directory listings. Despite being hidden,the files / directories etc. are fully accessible to clients who know whatnames to actually use. Items will be hidden if their names contain the stringgiven by hide_file, or if they match the regular expression specified byhide_file. Note that vsftpd's regular expression matching code is a simpleimplementation which is a subset of full regular expression functionality.See.BR deny_filefor details of exactly what regex syntax is supported.Example: hide_file={*.mp3,.hidden,hide*,h?}Default: (none).TP.B listen_addressIf vsftpd is in standalone mode, the default listen address (of all localinterfaces) may be overridden by this setting. Provide a numeric IP address.Default: (none).TP.B listen_address6Like listen_address, but specifies a default listen address for the IPv6listener (which is used if listen_ipv6 is set). Format is standard IPv6address format.Default: (none).TP.B local_rootThis option represents a directory which vsftpd will try to change intoafter a local (i.e. non-anonymous) login. Failure is silently ignored.Default: (none).TP.B message_fileThis option is the name of the file we look for when a new directory isentered. The contents are displayed to the remote user. This option isonly relevant if the option.BR dirmessage_enableis enabled.Default: .message.TP.B nopriv_userThis is the name of the user that is used by vsftpd when it wants to betotally unprivileged. Note that this should be a dedicated user, ratherthan nobody. The user nobody tends to be used for rather a lot of importantthings on most machines.Default: nobody.TP.B pam_service_nameThis string is the name of the PAM service vsftpd will use.Default: ftp.TP.B pasv_addressUse this option to override the IP address that vsftpd will advertise inresponse to the PASV command. Provide a numeric IP address, unless.BR pasv_addr_resolveis enabled, in which case you can provide a hostname which will be DNSresolved for you at startup.Default: (none - the address is taken from the incoming connected socket).TP.B rsa_cert_fileThis option specifies the location of the RSA certificate to use for SSLencrypted connections.Default: /usr/share/ssl/certs/vsftpd.pem.TP.B rsa_private_key_fileThis option specifies the location of the RSA private key to use for SSLencrypted connections. If this option is not set, the private key is expectedto be in the same file as the certificate.Default: (none).TP.B secure_chroot_dirThis option should be the name of a directory which is empty. Also, thedirectory should not be writable by the ftp user. This directory is usedas a secure chroot() jail at times vsftpd does not require filesystem access.Default: /usr/share/empty.TP.B ssl_ciphersThis option can be used to select which SSL ciphers vsftpd will allow forencrypted SSL connections. See the.BR ciphersman page for further details. Note that restricting ciphers can be a usefulsecurity precaution as it prevents malicious remote parties forcing a cipherwhich they have found problems with.Default: DES-CBC3-SHA.TP.B user_config_dirThis powerful option allows the override of any config option specified inthe manual page, on a per-user basis. Usage is simple, and is best illustratedwith an example. If you set.BR user_config_dirto be.BR /etc/vsftpd_user_confand then log on as the user "chris", then vsftpd will apply the settings inthe file.BR /etc/vsftpd_user_conf/chrisfor the duration of the session. The format of this file is as detailed inthis manual page! PLEASE NOTE that not all settings are effective on aper-user basis. For example, many settings only prior to the user's sessionbeing started. Examples of settings which will not affect any behviour ona per-user basis include listen_address, banner_file, max_per_ip, max_clients,xferlog_file, etc.Default: (none).TP.B user_sub_tokenThis option is useful is conjunction with virtual users. It is used toautomatically generate a home directory for each virtual user, based on atemplate. For example, if the home directory of the real user specified via.BR guest_usernameis.BR /home/virtual/$USER ,and.BR user_sub_tokenis set to.BR $USER ,then when virtual user fred logs in, he will end up (usually chroot()'ed) inthe directory.BR /home/virtual/fred .This option also takes affect if.BR local_rootcontains.BR user_sub_token .Default: (none).TP.B userlist_fileThis option is the name of the file loaded when the.BR userlist_enableoption is active.Default: /etc/vsftpd.user_list.TP.B vsftpd_log_fileThis option is the name of the file to which we write the vsftpd stylelog file. This log is only written if the option.BR xferlog_enableis set, and.BR xferlog_std_formatis NOT set. Alternatively, it is written if you have set the option.BR dual_log_enable .One further complication - if you have set.BR syslog_enable ,then this file is not written and output is sent to the system log instead.Default: /var/log/vsftpd.log.TP.B xferlog_fileThis option is the name of the file to which we write the wu-ftpd styletransfer log. The transfer log is only written if the option.BR xferlog_enableis set, along with.BR xferlog_std_format .Alternatively, it is written if you have set the option.BR dual_log_enable .Default: /var/log/xferlog.SH AUTHORscarybeasts@gmail.com
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -