惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

Rat's Blog - ftp

Filestash:一个多功能的Web端文件管理器,支持SFTP/GDrive/Dropbox/S3等 - Rat's Blog Xshell 6官方永久免费版,可解决评估期已过的提示问题 - Rat's Blog 一个在浏览器上运行的FTP客户端:SPRUT.io安装教程 - Rat's Blog Linux VPS通过安装CurlFtpFS来挂载FTP,可用来备份文件 - Rat's Blog 推荐3款流行的Linux VPS主机FTP文件管理软件 - Rat's Blog Ubuntu 安装Fail2ban服务来防止暴力破解FTP/SSH - Rat's Blog
VPS FTP快速安装教程 - Rat's Blog
博主: Rat's · 2015-05-06 · via Rat's Blog - ftp

安装vsftpd

apt-get install vsftpd #ubuntu、debian系统
yum install vsftpd     #centos系统

配置

vi /etc/vsftpd.conf

1、对下列信息进行修改,也可以直接进入WinSCP直接操作

#anonymous_enable=YES #注销掉,关闭匿名访问
local_enable=YES 
write_enable=YES #去掉注销,#让本地账号可以访问
local_umask=022 #去掉注销,#设置权限掩码
chroot_local_user=YES #仅允许用户访问自己的路径

2、让root可以访问(可选)

vi /etc/ftpusers

把root去掉

创建 ftp 用户

1、增加一个 ftpgroup 用户组

groupadd ftpgroup

2、增加用户ftpuser,-d 设置其目录为/home/wwwroot/xx.com

useradd -g ftpgroup -d /home/wwwroot/xx.com ftpuser

3、用户必须拥有权限才可以访问,赋予访问/ftp/ftpuser的权限

chmod 777 /home/wwwroot/xx.com

4、设置 ftpuser 密码

passwd ftpuser

5、重启vsftpd

service vsftpd restart

版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/70/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。