📄 vsftpd.conf.5
字号:
particular location in the path.Default: NO.TP.B pasv_addr_resolveSet to YES if you want to use a hostname (as opposed to IP address) in the.BR pasv_addressoption.Default: NO.TP.B pasv_enableSet to NO if you want to disallow the PASV method of obtaining a dataconnection.Default: YES.TP.B pasv_promiscuousSet to YES if you want to disable the PASV security check that ensures thedata connection originates from the same IP address as the control connection.Only enable if you know what you are doing! The only legitimate use for thisis in some form of secure tunnelling scheme, or perhaps to facilitate FXPsupport.Default: NO.TP.B port_enableSet to NO if you want to disallow the PORT method of obtaining a dataconnection.Default: YES.TP.B port_promiscuousSet to YES if you want to disable the PORT security check that ensures thatoutgoing data connections can only connect to the client. Only enable ifyou know what you are doing!Default: NO.TP.B require_certIf set to yes, all SSL client connections are required to present a clientcertificate. The degree of validation applied to this certificate iscontrolled by.BR validate_cert(Added in v2.0.6).Default: NO.TP.B require_ssl_reuseIf set to yes, all SSL data connections are required to exhibit SSL sessionreuse (which proves that they know the same master secret as the controlchannel). (Added in v2.1.0).Default: YES.TP.B run_as_launching_userSet to YES if you want vsftpd to run as the user which launched vsftpd. This isuseful where root access is not available. MASSIVE WARNING! Do NOT enable thisoption unless you totally know what you are doing, as naive use of this optioncan create massive security problems. Specifically, vsftpd does not / cannotuse chroot technology to restrict file access when this option is set (even iflaunched by root). A poor substitute could be to use a.BR deny_filesetting such as {/*,*..*}, but the reliability of this cannot compare tochroot, and should not be relied on.If using this option, many restrictions on other optionsapply. For example, options requiring privilege such as non-anonymous logins,upload ownership changing, connecting from port 20 and listen ports less than1024 are not expected to work. Other options may be impacted.Default: NO.TP.B secure_email_list_enableSet to YES if you want only a specified list of e-mail passwords for anonymouslogins to be accepted. This is useful as a low-hassle way of restrictingaccess to low-security content without needing virtual users. When enabled,anonymous logins are prevented unless the password provided is listed in thefile specified by the.BR email_password_filesetting. The file format is one password per line, no extra whitespace. Thedefault filename is /etc/vsftpd.email_passwords.Default: NO.TP.B session_supportThis controls whether vsftpd attempts to maintain sessions for logins. Ifvsftpd is maintaining sessions, it will try and update utmp and wtmp. Itwill also open a pam_session if using PAM to authenticate, and only closethis upon logout. You may wish to disable this if you do not need sessionlogging, and you wish to give vsftpd more opportunity to run with lessprocesses and / or less privilege. NOTE - utmp and wtmp support is onlyprovided with PAM enabled builds.Default: NO.TP.B setproctitle_enableIf enabled, vsftpd will try and show session status information in the systemprocess listing. In other words, the reported name of the process will changeto reflect what a vsftpd session is doing (idle, downloading etc). Youprobably want to leave this off for security purposes.Default: NO.TP.B ssl_enableIf enabled, and vsftpd was compiled against OpenSSL, vsftpd will support secureconnections via SSL. This applies to the control connection (including login)and also data connections. You'll need a client with SSL support too. NOTE!!Beware enabling this option. Only enable it if you need it. vsftpd can make noguarantees about the security of the OpenSSL libraries. By enabling thisoption, you are declaring that you trust the security of your installedOpenSSL library.Default: NO.TP.B ssl_request_certIf enabled, vsftpd will request (but not necessarily require; see.BR require_cert) a certificate on incoming SSL connections. Normally thisshould not cause any trouble at all, but IBM zOS seems to have issues.(New in v2.0.7).Default: YES.TP.B ssl_sslv2Only applies if.BR ssl_enableis activated. If enabled, this option will permit SSL v2 protocol connections.TLS v1 connections are preferred.Default: NO.TP.B ssl_sslv3Only applies if.BR ssl_enableis activated. If enabled, this option will permit SSL v3 protocol connections.TLS v1 connections are preferred.Default: NO.TP.B ssl_tlsv1Only applies if.BR ssl_enableis activated. If enabled, this option will permit TLS v1 protocol connections.TLS v1 connections are preferred.Default: YES.TP.B strict_ssl_read_eofIf enabled, SSL data uploads are required to terminate via SSL, not anEOF on the socket. This option is required to be sure that an attacker didnot terminate an upload prematurely with a faked TCP FIN. Unfortunately, itis not enabled by default because so few clients get it right. (New in v2.0.7).Default: NO.TP.B strict_ssl_write_shutdownIf enabled, SSL data downloads are required to terminate via SSL, not anEOF on the socket. This is off by default as I was unable to find a singleFTP client that does this. It is minor. All it affects is our ability to tellwhether the client confirmed full receipt of the file. Even without this option,the client is able to check the integrity of the download. (New in v2.0.7).Default: NO.TP.B syslog_enableIf enabled, then any log output which would have gone to /var/log/vsftpd.loggoes to the system log instead. Logging is done under the FTPD facility.Default: NO.TP.B tcp_wrappersIf enabled, and vsftpd was compiled with tcp_wrappers support, incomingconnections will be fed through tcp_wrappers access control. Furthermore,there is a mechanism for per-IP based configuration. If tcp_wrappers setsthe VSFTPD_LOAD_CONF environment variable, then the vsftpd session will tryand load the vsftpd configuration file specified in this variable. Default: NO.TP.B text_userdb_namesBy default, numeric IDs are shown in the user and group fields of directorylistings. You can get textual names by enabling this parameter. It is offby default for performance reasons.Default: NO.TP.B tilde_user_enableIf enabled, vsftpd will try and resolve pathnames such as ~chris/pics, i.e. atilde followed by a username. Note that vsftpd will always resolve thepathnames ~ and ~/something (in this case the ~ resolves to the initiallogin directory). Note that ~user paths will only resolve if the file.BR /etc/passwdmay be found within the _current_ chroot() jail.Default: NO.TP.B use_localtimeIf enabled, vsftpd will display directory listings with the time in yourlocal time zone. The default is to display GMT. The times returned by theMDTM FTP command are also affected by this option.Default: NO.TP.B use_sendfileAn internal setting used for testing the relative benefit of using thesendfile() system call on your platform.Default: YES.TP.B userlist_denyThis option is examined if.B userlist_enableis activated. If you set this setting to NO, then users will be denied loginunless they are explicitly listed in the file specified by.BR userlist_file .When login is denied, the denial is issued before the user is asked for apassword.Default: YES.TP.B userlist_enableIf enabled, vsftpd will load a list of usernames, from the filename given by.BR userlist_file .If a user tries to log in using a name in this file, they will be deniedbefore they are asked for a password. This may be useful in preventingcleartext passwords being transmitted. See also.BR userlist_deny .Default: NO.TP.B validate_certIf set to yes, all SSL client certificates received must validate OK.Self-signed certs do not constitute OK validation. (New in v2.0.6).Default: NO.TP.B virtual_use_local_privsIf enabled, virtual users will use the same privileges as local users. Bydefault, virtual users will use the same privileges as anonymous users, whichtends to be more restrictive (especially in terms of write access).Default: NO.TP.B write_enableThis controls whether any FTP commands which change the filesystem are allowedor not. These commands are: STOR, DELE, RNFR, RNTO, MKD, RMD, APPE and SITE.Default: NO.TP.B xferlog_enableIf enabled, a log file will be maintained detailling uploads and downloads.By default, this file will be placed at /var/log/vsftpd.log, but this locationmay be overridden using the configuration setting.BR vsftpd_log_file .Default: NO (but the sample config file enables it).TP.B xferlog_std_formatIf enabled, the transfer log file will be written in standard xferlog format,as used by wu-ftpd. This is useful because you can reuse existing transferstatistics generators. The default format is more readable, however. Thedefault location for this style of log file is /var/log/xferlog, but you maychange it with the setting.BR xferlog_file .Default: NO.SH NUMERIC OPTIONSBelow is a list of numeric options. A numeric option must be set to a nonnegative integer. Octal numbers are supported, for convenience of the umaskoptions. To specify an octal number, use 0 as the first digit of the number..TP.B accept_timeoutThe timeout, in seconds, for a remote client to establish connection witha PASV style data connection.Default: 60.TP.B anon_max_rateThe maximum data transfer rate permitted, in bytes per second, for anonymousclients.Default: 0 (unlimited).TP.B anon_umaskThe value that the umask for file creation is set to for anonymous users. NOTE! If you want to specify octal values, remember the "0" prefix otherwise thevalue will be treated as a base 10 integer!Default: 077.TP.B chown_upload_modeThe file mode to force for chown()ed anonymous uploads. (Added in v2.0.6).Default: 0600.TP.B connect_timeoutThe timeout, in seconds, for a remote client to respond to our PORT styledata connection.Default: 60.TP.B data_connection_timeoutThe timeout, in seconds, which is roughly the maximum time we permit datatransfers to stall for with no progress. If the timeout triggers, the remoteclient is kicked off.Default: 300.TP.B delay_failed_loginThe number of seconds to pause prior to reporting a failed login.Default: 1.TP.B delay_successful_loginThe number of seconds to pause prior to allowing a successful login.Default: 0.TP.B file_open_modeThe permissions with which uploaded files are created. Umasks are appliedon top of this value. You may wish to change to 0777 if you want uploadedfiles to be executable.Default: 0666.TP.B ftp_data_portThe port from which PORT style connections originate (as long as the poorlynamed.BR connect_from_port_20is enabled).Default: 20.TP.B idle_session_timeoutThe timeout, in seconds, which is the maximum time a remote client may spendbetween FTP commands. If the timeout triggers, the remote client is kickedoff.Default: 300.TP.B listen_portIf vsftpd is in standalone mode, this is the port it will listen on forincoming FTP connections.Default: 21.TP.B local_max_rateThe maximum data transfer rate permitted, in bytes per second, for localauthenticated users.Default: 0 (unlimited).TP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -