没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
一、系统帐户
1. 建立 Vsftpd 服务的宿主用户:
[root@GNCloud0001 ~]# useradd vsftpd -s /sbin/nologin
2. 建立 Vsftpd 虚拟宿主用户:
[root@GNCloud0001 ~]# useradd virtusers -s /sbin/nologin
二、调整 Vsftpd 的配置文件
1. 编辑配置文件前先备份
[root@GNCloud0001 ~]# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.bak
2. 编辑主配置文件 Vsftpd.conf ,只看红色字体
注意在编辑的过程中等号两边不允许有空格 yes or no 前后也不允许有空格
[root@GNCloud0001 ~]# vi /etc/vsftpd/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 ---设置为本地用户可以访问,主要是为虚拟宿主用户,如果该
项 为 NO 所有的虚拟用户将无法登陆
#
# 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=NO -- 禁止匿名用户上传
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
kurt1988
- 粉丝: 3
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0