美文网首页
vsftp配置

vsftp配置

作者: dbasy | 来源:发表于2020-07-08 14:20 被阅读0次

1.查找vsftpd.conf配置文件

find / -name vsftpd.conf


image.png

2.打开配置文件

vim /home/ftpfiles/vsftpd.conf
配置文件说明
...

Example config file /etc/vsftpd/vsftpd.conf

capabilities.

anonymous_enable=YES

Uncomment this to allow local users to log in.

Uncomment this to enable any form of FTP write command.

write_enable=YES

if your users expect that (022 is used by most other ftpd's)

local_umask=022

new directories.

anon_mkdir_write_enable=YES

go into a certain directory.

dirmessage_enable=YES

xferlog_enable=YES

a different user. Note! Using "root" for uploaded files is not

chown_username=whoever

xferlog_file=/var/log/xferlog

idle_session_timeout=600

data_connection_timeout=120

nopriv_user=ftpsecure

mangling on files when in ASCII mode.

ascii_upload_enable=YES

ascii_download_enable=YES

useful for combatting certain DoS attacks.

users to NOT chroot().

chroot_local_user=YES

chroot_list_enable=YES

(default follows)

chroot_list_file=/etc/vsftpd/chroot_list

You may activate the "-R" option to the builtin ls. This is disabled by

default to avoid remote users being able to cause excessive I/O on large

sites. However, some broken FTP clients such as "ncftp" and "mirror" assume

the presence of the "-R" option, so there is a strong case for enabling it.

ls_recurse_enable=YES

When "listen" directive is enabled, vsftpd runs in standalone mode and

listens on IPv4 sockets. This directive cannot be used in conjunction

with the listen_ipv6 directive.

listen=YES

This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6

sockets, you must run two copies of vsftpd with two configuration files.

Make sure, that one of the listen options is commented !!

listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
user_config_dir=/etc/vsftpd/userconfig
...

相关文章

网友评论

      本文标题:vsftp配置

      本文链接:https://www.haomeiwen.com/subject/sxcccktx.html