当前位置: 技术问答>linux和unix
vsftp 匿名用户访问 关不了 怎么办?
来源: 互联网 发布时间:2016-04-30
本文导语: [root@localhost vsftpd]# vi vsftpd.conf # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 ...
[root@localhost vsftpd]# vi vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
# anonymous_enable=NO
#
# 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.
"vsftpd.conf" 110L, 4143C
配置文件如上``
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
# anonymous_enable=NO
#
# 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.
"vsftpd.conf" 110L, 4143C
配置文件如上``
|
# anonymous_enable=NO
改成anonymous_enable=NO
改成anonymous_enable=NO
|
设置禁止匿名登录,不是把它#注释,
默认 anonymous_enable=YES
YES改为NO,如下:
anonymous_enable=NO
默认 anonymous_enable=YES
YES改为NO,如下:
anonymous_enable=NO
|
设置禁止匿名登录,不是把它#注释,
默认 anonymous_enable=YES
YES改为NO,如下:
anonymous_enable=NO
默认 anonymous_enable=YES
YES改为NO,如下:
anonymous_enable=NO
|
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
# anonymous_enable=NO
改成:
anonymous_enable=YES
记得要先去掉前面的#!
# anonymous_enable=NO
改成:
anonymous_enable=YES
记得要先去掉前面的#!
|
#是注释符,加#了其实等于啥都没做
|
是这样的
|
#是注释符,等于WINDOWS下的//