⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vsftpd.conf.5

📁 文件传输协议linux 下vsftpd2.1.0.tar.gz
💻 5
📖 第 1 页 / 共 3 页
字号:
.TH VSFTPD.CONF 5.SH NAMEvsftpd.conf \- config file for vsftpd.SH DESCRIPTIONvsftpd.conf may be used to control various aspects of vsftpd's behaviour. Bydefault, vsftpd looks for this file at the location.BR /etc/vsftpd.conf .However, you may override this by specifying a command line argument tovsftpd. The command line argument is the pathname of the configuration filefor vsftpd. This behaviour is useful because you may wish to use an advancedinetd such as.BR xinetdto launch vsftpd with different configuration files on a per virtual hostbasis..SH FORMATThe format of vsftpd.conf is very simple. Each line is either a comment ora directive. Comment lines start with a # and are ignored. A directive linehas the format:option=valueIt is important to note that it is an error to put any space between theoption, = and value.Each setting has a compiled in default which may be modified in theconfiguration file..SH BOOLEAN OPTIONSBelow is a list of boolean options. The value for a boolean option may be setto.BR YESor.BR NO ..TP.B allow_anon_sslOnly applies if.BR ssl_enableis active. If set to YES, anonymous users will be allowed to use secured SSLconnections.Default: NO.TP.B anon_mkdir_write_enableIf set to YES, anonymous users will be permitted to create new directoriesunder certain conditions. For this to work, the option.BR write_enablemust be activated, and the anonymous ftp user must have write permission onthe parent directory.Default: NO.TP.B anon_other_write_enableIf set to YES, anonymous users will be permitted to perform write operationsother than upload and create directory, such as deletion and renaming. Thisis generally not recommended but included for completeness.Default: NO.TP.B anon_upload_enableIf set to YES, anonymous users will be permitted to upload files under certainconditions. For this to work, the option.BR write_enablemust be activated, and the anonymous ftp user must have write permission ondesired upload locations. This setting is also required for virtual users toupload; by default, virtual users are treated with anonymous (i.e. maximallyrestricted) privilege.Default: NO.TP.B anon_world_readable_onlyWhen enabled, anonymous users will only be allowed to download files whichare world readable. This is recognising that the ftp user may own files,especially in the presence of uploads.Default: YES.TP.B anonymous_enableControls whether anonymous logins are permitted or not. If enabled,both the usernames.BR ftpand.BR anonymousare recognised as anonymous logins.Default: YES.TP.B ascii_download_enableWhen enabled, ASCII mode data transfers will be honoured on downloads.Default: NO.TP.B ascii_upload_enableWhen enabled, ASCII mode data transfers will be honoured on uploads.Default: NO.TP.B async_abor_enableWhen enabled, a special FTP command known as "async ABOR" will be enabled.Only ill advised FTP clients will use this feature. Additionally, this featureis awkward to handle, so it is disabled by default. Unfortunately, some FTPclients will hang when cancelling a transfer unless this feature is available,so you may wish to enable it.Default: NO.TP.B backgroundWhen enabled, and vsftpd is started in "listen" mode, vsftpd will backgroundthe listener process. i.e. control will immediately be returned to the shellwhich launched vsftpd.Default: NO.TP.B check_shellNote! This option only has an effect for non-PAM builds of vsftpd. If disabled,vsftpd will not check /etc/shells for a valid user shell for local logins.Default: YES.TP.B chmod_enableWhen enables, allows use of the SITE CHMOD command. NOTE! This only appliesto local users. Anonymous users never get to use SITE CHMOD.Default: YES.TP.B chown_uploadsIf enabled, all anonymously uploaded files will have the ownership changedto the user specified in the setting.BR chown_username .This is useful from an administrative, and perhaps security, standpoint.Default: NO.TP.B chroot_list_enableIf activated, you may provide a list of local users who are placed in achroot() jail in their home directory upon login. The meaning is slightlydifferent if chroot_local_user is set to YES. In this case, the list becomesa list of users which are NOT to be placed in a chroot() jail.By default, the file containing this list is/etc/vsftpd.chroot_list, but you may override this with the.BR chroot_list_filesetting.Default: NO.TP.B chroot_local_userIf set to YES, local users will be (by default) placed in a chroot() jail intheir home directory after login..BR Warning:This option has security implications, especially if the users have uploadpermission, or shell access. Only enable if you know what you are doing.Note that these security implications are not vsftpd specific. They apply toall FTP daemons which offer to put local users in chroot() jails.Default: NO.TP.B connect_from_port_20This controls whether PORT style data connections use port 20 (ftp-data) onthe server machine. For security reasons, some clients may insist that thisis the case. Conversely, disabling this option enables vsftpd to run withslightly less privilege.Default: NO (but the sample config file enables it).TP.B debug_sslIf true, OpenSSL connection diagnostics are dumped to the vsftpd log file.(Added in v2.0.6).Default: NO.TP.B delete_failed_uploadsIf true, any failed upload files are deleted.  (Added in v2.0.7).Default: NO.TP.B deny_email_enableIf activated, you may provide a list of anonymous password e-mail responseswhich cause login to be denied. By default, the file containing this list is/etc/vsftpd.banned_emails, but you may override this with the.BR banned_email_filesetting.Default: NO.TP.B dirlist_enableIf set to NO, all directory list commands will give permission denied.Default: YES.TP.B dirmessage_enableIf enabled, users of the FTP server can be shown messages when they firstenter a new directory. By default, a directory is scanned for thefile .message, but that may be overridden with the configuration setting.BR message_file .Default: NO (but the sample config file enables it).TP.B download_enableIf set to NO, all download requests will give permission denied.Default: YES.TP.B dual_log_enableIf enabled, two log files are generated in parallel, going by default to.BR /var/log/xferlogand.BR /var/log/vsftpd.log .The former is a wu-ftpd style transfer log, parseable by standard tools. Thelatter is vsftpd's own style log.Default: NO.TP.B force_dot_filesIf activated, files and directories starting with . will be shown in directorylistings even if the "a" flag was not used by the client. This overrideexcludes the "." and ".." entries.Default: NO.TP.B force_anon_data_sslOnly applies if.BR ssl_enableis activated. If activated, all anonymous logins are forced to use a secureSSL connection in order to send and receive data on data connections.Default: NO.TP.B force_anon_logins_sslOnly applies if.BR ssl_enableis activated. If activated, all anonymous logins are forced to use a secureSSL connection in order to send the password.Default: NO.TP.B force_local_data_sslOnly applies if.BR ssl_enableis activated. If activated, all non-anonymous logins are forced to use a secureSSL connection in order to send and receive data on data connections.Default: YES.TP.B force_local_logins_sslOnly applies if.BR ssl_enableis activated. If activated, all non-anonymous logins are forced to use a secureSSL connection in order to send the password.Default: YES.TP.B guest_enableIf enabled, all non-anonymous logins are classed as "guest" logins. A guestlogin is remapped to the user specified in the.BR guest_usernamesetting.Default: NO.TP.B hide_idsIf enabled, all user and group information in directory listings will bedisplayed as "ftp".Default: NO.TP.B implicit_sslIf enabled, an SSL handshake is the first thing expect on all connections(the FTPS protocol). To support explicit SSL and/or plain text too, aseparate vsftpd listener process should be run.Default: NO.TP.B listenIf enabled, vsftpd will run in standalone mode. This means that vsftpd mustnot be run from an inetd of some kind. Instead, the vsftpd executable isrun once directly. vsftpd itself will then take care of listening for andhandling incoming connections.Default: YES.TP.B listen_ipv6Like the listen parameter, except vsftpd will listen on an IPv6 socket insteadof an IPv4 one. This parameter and the listen parameter are mutuallyexclusive.Default: NO.TP.B local_enableControls whether local logins are permitted or not. If enabled, normaluser accounts in /etc/passwd (or wherever your PAM config references) may beused to log in. This must be enable for any non-anonymous login to work,including virtual users.Default: NO.TP.B lock_upload_filesWhen enabled, all uploads proceed with a write lock on the upload file. Alldownloads proceed with a shared read lock on the download file. WARNING!Before enabling this, be aware that malicious readers could starve a writerwanting to e.g. append a file.Default: YES.TP.B log_ftp_protocolWhen enabled, all FTP requests and responses are logged, providing the optionxferlog_std_format is not enabled. Useful for debugging.Default: NO.TP.B ls_recurse_enableWhen enabled, this setting will allow the use of "ls -R". This is a minorsecurity risk, because a ls -R at the top level of a large site may consumea lot of resources.Default: NO.TP.B mdtm_writeWhen enabled, this setting will allow MDTM to set file modification times(subject to the usual access checks).Default: YES.TP.B no_anon_passwordWhen enabled, this prevents vsftpd from asking for an anonymous password -the anonymous user will log straight in.Default: NO.TP.B no_log_lockWhen enabled, this prevents vsftpd from taking a file lock when writing to logfiles. This option should generally not be enabled. It exists to workaroundoperating system bugs such as the Solaris / Veritas filesystem combinationwhich has been observed to sometimes exhibit hangs trying to lock log files.Default: NO.TP.B one_process_modelIf you have a Linux 2.4 kernel, it is possible to use a different securitymodel which only uses one process per connection. It is a less pure securitymodel, but gains you performance. You really don't want to enable this unlessyou know what you are doing, and your site supports huge numbers ofsimultaneously connected users.Default: NO.TP.B passwd_chroot_enableIf enabled, along with.BR chroot_local_user, then a chroot() jail location may be specified on a per-user basis. Eachuser's jail is derived from their home directory string in /etc/passwd. Theoccurrence of /./ in the home directory string denotes that the jail is at that

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -