欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

Linux服务器配置---ftp配置

程序员文章站 2022-03-09 22:17:33
FTP其他配置 在配置文件中,还有一些关于vsftpd的其他设置,这里列出来 # Example config file /etc/vsftpd/vsftpd.conf # Allow anonymous FTP? (Beware - allowed by default if you commen ......

ftp其他配置

      在配置文件中,还有一些关于vsftpd的其他设置,这里列出来

# example config file /etc/vsftpd/vsftpd.conf

# allow anonymous ftp? (beware - allowed by default if you comment this out).

anonymous_enable=yes       //是否允许匿名登录

#

# uncomment this to allow local users to log in.

local_enable=yes         //是否允许本地用户登录

#

# uncomment this to enable any form of ftp write command.

write_enable=yes        //是否允许写操作

#

# default umask for local users is 077. you may wish to change this to 022,

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

local_umask=022      //本地用农户权限掩码

#

# uncomment this to allow the anonymous ftp user to upload files. this only

# has an effect if the above global write enable is activated. also, you will

# obviously need to create a directory writable by the ftp user.

#anon_upload_enable=yes     //是否允许匿名用户上传

#

# uncomment this if you want the anonymous ftp user to be able to create

# new directories.

#anon_mkdir_write_enable=yes    //是否允匿名用户创建目录

#

# activate directory messages - messages given to remote users when they

# go into a certain directory.

dirmessage_enable=yes    //是否允许获取目录信息

# if you want, you can arrange for uploaded anonymous files to be owned by

# a different user. note! using "root" for uploaded files is not

# recommended!

#chown_uploads=yes        //是否允许其他用户拥有匿名用户上传的文件

#chown_username=whoever

# you may change the default value for timing out an idle session.

#idle_session_timeout=600    //连接空闲超时

#

# you may change the default value for timing out a data connection.

#data_connection_timeout=120    //数据请求超时

# 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    //是否允许ls命令使用-r参数,递归

# you may specify an explicit list of local users to chroot() to their home

# directory. if chroot_local_user is yes, then this list becomes a list of

# users to not chroot().

#chroot_local_user=yes    //是否允许用户切换目录

#chroot_list_enable=yes    //是否允许指定的用户切换目录,用户名单在/etc/vsftpd/chroot_list文件中

# (default follows)

#chroot_list_file=/etc/vsftpd/chroot_list  //这个文件中的用户不能切换目录