首页 > 其他分享 >vsftpd默认值

vsftpd默认值

时间:2023-07-13 21:04:53浏览次数:46  
标签:enable option NO Default vsftpd file 默认值


 

VSFTPD.CONF

Section: File Formats (5)
Index Return to Main Contents


 

NAME

 

DESCRIPTION

vsftpd.conf may be used to control various aspects of vsftpd's behaviour. By default, vsftpd looks for this file at the location /etc/vsftpd.conf. However, you may override this by specifying a command line argument to vsftpd. The command line argument is the pathname of the configuration file for vsftpd. This behaviour is useful because you may wish to use an advanced inetd such as xinetd to launch vsftpd with different configuration files on a per virtual host basis.

 

FORMAT

The format of vsftpd.conf is very simple. Each line is either a comment or a directive. Comment lines start with a # and are ignored. A directive line has the format:

option=value

It is important to note that it is an error to put any space between the option, = and value.

Each setting has a compiled in default which may be modified in the configuration file.

 

BOOLEAN OPTIONS

Below is a list of boolean options. The value for a boolean option may be set to YES or NO.

 


allow_anon_ssl

Only applies if  ssl_enable is active. If set to YES, anonymous users will be allowed to use secured SSL connections.


Default: NO


anon_mkdir_write_enable

If set to YES, anonymous users will be permitted to create new directories under certain conditions. For this to work, the option  write_enable must be activated, and the anonymous ftp user must have write permission on the parent directory.


Default: NO


anon_other_write_enable


Default: NO


anon_upload_enable

If set to YES, anonymous users will be permitted to upload files under certain conditions. For this to work, the option  write_enable must be activated, and the anonymous ftp user must have write permission on desired upload locations. This setting is also required for virtual users to upload; by default, virtual users are treated with anonymous (i.e. maximally restricted) privilege.


Default: NO


anon_world_readable_only


Default: YES


anonymous_enable

Controls whether anonymous logins are permitted or not. If enabled, both the usernames  ftp and 

anonymous are recognised as anonymous logins.


Default: YES


ascii_download_enable


Default: NO


ascii_upload_enable


Default: NO


async_abor_enable


Default: NO


background


Default: NO


check_shell


Default: YES


chmod_enable


Default: YES


chown_uploads

If enabled, all anonymously uploaded files will have the ownership changed to the user specified in the setting  chown_username. This is useful from an administrative, and perhaps security, standpoint.


Default: NO


chroot_list_enable

If activated, you may provide a list of local users who are placed in a chroot() jail in their home directory upon login. The meaning is slightly different if chroot_local_user is set to YES. In this case, the list becomes a 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  chroot_list_file setting.


Default: NO


chroot_local_user

If set to YES, local users will be (by default) placed in a chroot() jail in their home directory after login.  Warning: This option has security implications, especially if the users have upload permission, or shell access. Only enable if you know what you are doing. Note that these security implications are not vsftpd specific. They apply to all FTP daemons which offer to put local users in chroot() jails.


Default: NO


connect_from_port_20


Default: NO (but the sample config file enables it)


debug_ssl


Default: NO


delete_failed_uploads


Default: NO


deny_email_enable

If activated, you may provide a list of anonymous password e-mail responses which cause login to be denied. By default, the file containing this list is /etc/vsftpd.banned_emails, but you may override this with the  banned_email_file setting.


Default: NO


dirlist_enable


Default: YES


dirmessage_enable

If enabled, users of the FTP server can be shown messages when they first enter a new directory. By default, a directory is scanned for the file .message, but that may be overridden with the configuration setting  message_file.


Default: NO (but the sample config file enables it)


download_enable


Default: YES


dual_log_enable

If enabled, two log files are generated in parallel, going by default to  /var/log/xferlog and 

/var/log/vsftpd.log. The former is a wu-ftpd style transfer log, parseable by standard tools. The latter is vsftpd's own style log.


Default: NO


force_dot_files


Default: NO


force_anon_data_ssl

Only applies if  ssl_enable is activated. If activated, all anonymous logins are forced to use a secure SSL connection in order to send and receive data on data connections.


Default: NO


force_anon_logins_ssl

Only applies if  ssl_enable is activated. If activated, all anonymous logins are forced to use a secure SSL connection in order to send the password.


Default: NO


force_local_data_ssl

Only applies if  ssl_enable is activated. If activated, all non-anonymous logins are forced to use a secure SSL connection in order to send and receive data on data connections.


Default: YES


force_local_logins_ssl

Only applies if  ssl_enable is activated. If activated, all non-anonymous logins are forced to use a secure SSL connection in order to send the password.


Default: YES


guest_enable

If enabled, all non-anonymous logins are classed as "guest" logins. A guest login is remapped to the user specified in the  guest_username setting.


Default: NO


hide_ids


Default: NO


implicit_ssl


Default: NO


listen


Default: YES


listen_ipv6


Default: NO


local_enable


Default: NO


lock_upload_files


Default: YES


log_ftp_protocol


Default: NO


ls_recurse_enable


Default: NO


mdtm_write


Default: YES


no_anon_password


Default: NO


no_log_lock


Default: NO


one_process_model


Default: NO


passwd_chroot_enable

If enabled, along with  chroot_local_user , then a chroot() jail location may be specified on a per-user basis. Each user's jail is derived from their home directory string in /etc/passwd. The occurrence of /./ in the home directory string denotes that the jail is at that particular location in the path.


Default: NO


pasv_addr_resolve

Set to YES if you want to use a hostname (as opposed to IP address) in the  pasv_address option.


Default: NO


pasv_enable


Default: YES


pasv_promiscuous


Default: NO


port_enable


Default: YES


port_promiscuous


Default: NO


require_cert

If set to yes, all SSL client connections are required to present a client certificate. The degree of validation applied to this certificate is controlled by  validate_cert(Added in v2.0.6).


Default: NO


require_ssl_reuse

If set to yes, all SSL data connections are required to exhibit SSL session reuse (which proves that they know the same master secret as the control channel). Although this is a secure default, it may break many FTP clients, so you may want to disable it. For a discussion of the consequences, see (Added in v2.1.0).


Default: YES


run_as_launching_user

Set to YES if you want vsftpd to run as the user which launched vsftpd. This is useful where root access is not available. MASSIVE WARNING! Do NOT enable this option unless you totally know what you are doing, as naive use of this option can create massive security problems. Specifically, vsftpd does not / cannot use chroot technology to restrict file access when this option is set (even if launched by root). A poor substitute could be to use a  deny_file setting such as {/*,*..*}, but the reliability of this cannot compare to chroot, and should not be relied on. If using this option, many restrictions on other options apply. For example, options requiring privilege such as non-anonymous logins, upload ownership changing, connecting from port 20 and listen ports less than 1024 are not expected to work. Other options may be impacted.


Default: NO


secure_email_list_enable

Set to YES if you want only a specified list of e-mail passwords for anonymous logins to be accepted. This is useful as a low-hassle way of restricting access to low-security content without needing virtual users. When enabled, anonymous logins are prevented unless the password provided is listed in the file specified by the  email_password_filesetting. The file format is one password per line, no extra whitespace. The default filename is /etc/vsftpd.email_passwords.


Default: NO


session_support


Default: NO


setproctitle_enable


Default: NO


ssl_enable


Default: NO


ssl_request_cert

If enabled, vsftpd will request (but not necessarily require; see  require_cert)a

certificateon

incomingSSL

connections.Normally

this should not cause any trouble at all, but IBM zOS seems to have issues. (New in v2.0.7).


Default: YES


ssl_sslv2

Only applies if  ssl_enable is activated. If enabled, this option will permit SSL v2 protocol connections. TLS v1 connections are preferred.


Default: NO


ssl_sslv3

Only applies if  ssl_enable is activated. If enabled, this option will permit SSL v3 protocol connections. TLS v1 connections are preferred.


Default: NO


ssl_tlsv1

Only applies if  ssl_enable is activated. If enabled, this option will permit TLS v1 protocol connections. TLS v1 connections are preferred.


Default: YES


strict_ssl_read_eof


Default: NO


strict_ssl_write_shutdown


Default: NO


syslog_enable


Default: NO


tcp_wrappers


Default: NO


text_userdb_names


Default: NO


tilde_user_enable

If enabled, vsftpd will try and resolve pathnames such as ~chris/pics, i.e. a tilde followed by a username. Note that vsftpd will always resolve the pathnames ~ and ~/something (in this case the ~ resolves to the initial login directory). Note that ~user paths will only resolve if the file  /etc/passwd may be found within the _current_ chroot() jail.


Default: NO


use_localtime


Default: NO


use_sendfile


Default: YES


userlist_deny

This option is examined if  userlist_enable is activated. If you set this setting to NO, then users will be denied login unless they are explicitly listed in the file specified by 

userlist_file. When login is denied, the denial is issued before the user is asked for a password.


Default: YES


userlist_enable

If enabled, vsftpd will load a list of usernames, from the filename given by  userlist_file. If a user tries to log in using a name in this file, they will be denied before they are asked for a password. This may be useful in preventing cleartext passwords being transmitted. See also 

userlist_deny.


Default: NO


validate_cert


Default: NO


virtual_use_local_privs


Default: NO


write_enable


Default: NO


xferlog_enable

If 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 location may be overridden using the configuration setting  vsftpd_log_file.


Default: NO (but the sample config file enables it)


xferlog_std_format

If 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 transfer statistics generators. The default format is more readable, however. The default location for this style of log file is /var/log/xferlog, but you may change it with the setting  xferlog_file.


Default: NO

 

 

NUMERIC OPTIONS

Below is a list of numeric options. A numeric option must be set to a non negative integer. Octal numbers are supported, for convenience of the umask options. To specify an octal number, use 0 as the first digit of the number.

 


accept_timeout


Default: 60


anon_max_rate


Default: 0 (unlimited)


anon_umask


Default: 077


chown_upload_mode


Default: 0600


connect_timeout


Default: 60


data_connection_timeout


Default: 300


delay_failed_login


Default: 1


delay_successful_login


Default: 0


file_open_mode


Default: 0666


ftp_data_port

The port from which PORT style connections originate (as long as the poorly named  connect_from_port_20 is enabled).


Default: 20


idle_session_timeout


Default: 300


listen_port


Default: 21


local_max_rate


Default: 0 (unlimited)


local_umask


Default: 077


max_clients


Default: 0 (unlimited)


max_login_fails


Default: 3


max_per_ip


Default: 0 (unlimited)


pasv_max_port


Default: 0 (use any port)


pasv_min_port


Default: 0 (use any port)


trans_chunk_size


Default: 0 (let vsftpd pick a sensible setting)

 

 

STRING OPTIONS

Below is a list of string options.

 


anon_root


Default: (none)


banned_email_file

This option is the name of a file containing a list of anonymous e-mail passwords which are not permitted. This file is consulted if the option  deny_email_enable is enabled.


Default: /etc/vsftpd.banned_emails


banner_file

This option is the name of a file containing text to display when someone connects to the server. If set, it overrides the banner string provided by the  ftpd_banner option.


Default: (none)


ca_certs_file


Default: (none)


chown_username

This is the name of the user who is given ownership of anonymously uploaded files. This option is only relevant if another option,  chown_uploads, is set.


Default: root


chroot_list_file

The option is the name of a file containing a list of local users which will be placed in a chroot() jail in their home directory. This option is only relevant if the option chroot_list_enable is enabled. If the option 

chroot_local_user is enabled, then the list file becomes a list of users to NOT place in a chroot() jail.


Default: /etc/vsftpd.chroot_list


cmds_allowed


Default: (none)


cmds_denied

This options specifies a comma separated list of denied FTP commands (post login. USER, PASS, QUIT and others are always allowed pre-login). If a command appears on both this and  cmds_allowed then the denial takes precedence. (Added in v2.1.0).


Default: (none)


deny_file


Default: (none)


dsa_cert_file


Default: (none - an RSA certificate suffices)


dsa_private_key_file


Default: (none)


email_password_file

This option can be used to provide an alternate file for usage by the  secure_email_list_enable setting.


Default: /etc/vsftpd.email_passwords


ftp_username


Default: ftp


ftpd_banner


Default: (none - default vsftpd banner is displayed)


guest_username

See the boolean setting  guest_enable for a description of what constitutes a guest login. This setting is the real username which guest users are mapped to.


Default: ftp


hide_file

This option can be used to set a pattern for filenames (and directory names etc.) which should be hidden from directory listings. Despite being hidden, the files / directories etc. are fully accessible to clients who know what names to actually use. Items will be hidden if their names contain the string given by hide_file, or if they match the regular expression specified by hide_file. Note that vsftpd's regular expression matching code is a simple implementation which is a subset of full regular expression functionality. See deny_file for details of exactly what regex syntax is supported. Example: hide_file={*.mp3,.hidden,hide*,h?}


Default: (none)


listen_address


Default: (none)


listen_address6


Default: (none)


local_root


Default: (none)


message_file

This option is the name of the file we look for when a new directory is entered. The contents are displayed to the remote user. This option is only relevant if the option dirmessage_enable is enabled.


Default: .message


nopriv_user


Default: nobody


pam_service_name


Default: ftp


pasv_address

Use this option to override the IP address that vsftpd will advertise in response to the PASV command. Provide a numeric IP address, unless  pasv_addr_resolve is enabled, in which case you can provide a hostname which will be DNS resolved for you at startup.


Default: (none - the address is taken from the incoming connected socket)


rsa_cert_file


Default: /usr/share/ssl/certs/vsftpd.pem


rsa_private_key_file


Default: (none)


secure_chroot_dir


Default: /usr/share/empty


ssl_ciphers

This option can be used to select which SSL ciphers vsftpd will allow for encrypted SSL connections. See the  ciphers man page for further details. Note that restricting ciphers can be a useful security precaution as it prevents malicious remote parties forcing a cipher which they have found problems with.


Default: DES-CBC3-SHA


user_config_dir

This powerful option allows the override of any config option specified in the manual page, on a per-user basis. Usage is simple, and is best illustrated with an example. If you set  user_config_dir to be 

/etc/vsftpd_user_conf and then log on as the user "chris", then vsftpd will apply the settings in the file 

/etc/vsftpd_user_conf/chris for the duration of the session. The format of this file is as detailed in this manual page! PLEASE NOTE that not all settings are effective on a per-user basis. For example, many settings only prior to the user's session being started. Examples of settings which will not affect any behviour on a per-user basis include listen_address, banner_file, max_per_ip, max_clients, xferlog_file, etc.


Default: (none)


user_sub_token

This option is useful is conjunction with virtual users. It is used to automatically generate a home directory for each virtual user, based on a template. For example, if the home directory of the real user specified via  guest_username is 

/home/virtual/$USER, and 

user_sub_token is set to 

$USER, then when virtual user fred logs in, he will end up (usually chroot()'ed) in the directory 

/home/virtual/fred. This option also takes affect if 

local_root contains 

user_sub_token.


Default: (none)


userlist_file

This option is the name of the file loaded when the  userlist_enable option is active.


Default: /etc/vsftpd.user_list


vsftpd_log_file

This option is the name of the file to which we write the vsftpd style log file. This log is only written if the option  xferlog_enable is set, and 

xferlog_std_format is NOT set. Alternatively, it is written if you have set the option 

dual_log_enable. One further complication - if you have set 

syslog_enable, then this file is not written and output is sent to the system log instead.


Default: /var/log/vsftpd.log


xferlog_file

This option is the name of the file to which we write the wu-ftpd style transfer log. The transfer log is only written if the option  xferlog_enable is set, along with

xferlog_std_format. Alternatively, it is written if you have set the option 

dual_log_enable.


Default: /var/log/xferlog

 

 

AUTHOR

[email protected]

 

 


 

Index


NAME

DESCRIPTION

FORMAT

BOOLEAN OPTIONS

NUMERIC OPTIONS

STRING OPTIONS

AUTHOR



This document was created by man2html, using the manual pages.
Time: 01:07:21 GMT, May 28, 2009

 

标签:enable,option,NO,Default,vsftpd,file,默认值
From: https://blog.51cto.com/u_16187922/6715609

相关文章

  • SQL数据库-新增字段时,默认值依然为NULL
    SQL数据库-新增字段时,给默认值的方法代码如下:altertable表名ADD字段intNOT NULLDEFAULT 0alter table表名 ADD 字段 numeric(18, 4) NOT NULL DEFAULT 0;注:特点是:notnull ,如果是null,是不会赋默认值0的,如果是notnull,就会赋默认值0......
  • 记录vsftpd版本2和3配置文件默认不同导致的服务无法正常启动
    做完做了一个ftp的迁移,从centos6.5的2.2.2版本到bc-liunx8.2的3.0.3的迁移,这里简单说一下迁移1、scp拷贝ftp文件夹2、scp拷贝etc/vsftpd下的所有文件3、更改ftp文件夹的所有用户4、创建虚拟用户5、安装vsftpd,这里建议编译安装,可自行初始化。6、重点这里ftp顺利启动起来了,但是我们系......
  • Golang技巧:如何为函数参数添加默认值?
    你是否是那些在Go中缺少默认参数值而感到沮丧的众多程序员之一?如果是的话,你绝对不是一个人!如何为函数参数添加默认值。你是否曾因为Go语言没有默认参数值而感到沮丧?好消息是,你并不孤单!这个令人讨厌的限制会让你的代码更加繁琐,难以阅读。每次都需要写额外的代码来检查参数是否......
  • Ubuntu20.04下 vsftpd.service 状态报错code=exited, status=2解决以及简单配置
    1、状态报错,启动失败 2、主要原因是ipv4和ipv6不能同时被监听,所以,注释ipv63、重启服务并且登录localhost,输入用户名和密码,显示登录成功 4、配置指定目录,确保对应的值如下anonymous_enable=NOlocal_enable=YESwrite_enable=YESchroot_local_user=YES 5、添加以下......
  • mysql运行sql文件时,timestamp默认值出错问题解决
    出现了---Invaliddefaultvaluefor'reward_time' 直接打开sql文件,将字段reward_time类型值替换成NULL即可 ......
  • jmeter003:(HTTP请求默认值)元件
    HTTP请求默认值作用:当有多个请求的协议、ip、端口号、路径、内容编码、参数、消息数据体是一样时,可以使用http请求默认来代替多个请求值添加路径:线程组>配置元件>HTTP请求默认值使用方法:如下图,(请求1、请求2、请求3)添加了(HTTP请求默认值)之后,请求数据取的都是(HTTP请求默认值)里面......
  • django admin 后台手动添加数据,设置表单默认自动填充默认值,get_form函数
    需求admin添加数据,表单某字段默认填充值。例如电话号默认填充前缀:+86 效果 实现方法:https://www.codenong.com/529890/在数据库表模型对应的admin后台的管理文件admin.py 内对应Admin管理类配置get_form函数@admin.register(models.UserInfo)classUserInfoAdmi......
  • Gorm - sql查询某个字段为空时赋默认值
    场景:查询时报错err{"error":"sql:Scanerroroncolumnindex0,name\"mobile\":convertingNULLtostringisunsupported"}总结:根据项目需要,在数据库查询时,可能需要对查询结果进行封装,为避免前端抛出空指针异常(NullPointException),对于没有值的字段也不能......
  • vsftpd安装
     注意事项:FTPS数据存取介质磁盘不能为lvm格式,且不能挂载到lvm的目录下1、yum -y install  ftp vsftpdvsftpd:version3.0.2  mkdir-p/etc/vsftpd/vsftpd_user_conf2、编辑vsftpd的主配置文件(centos6和centos7的主配置文件vsftpd.conf不一样,其余的配置步骤一样)Cen......
  • vsftpd日志配置及查看——可以将vsftpd记录在系统日志里
    vsftpd日志配置及查看vsftpdftp服务器的日志设置,可以通过修改主配置文件/etc/vsftpd.conf实现。主配置文件中与日志设置有关的选项包括xferlog_enable、xferlog_file和dual_log_enable等。 xferlog_enable 如果启用该选项,系统将会维护记录服务器上传和下载情况的日志文件。默......