当前位置:网站首页>Proftpd配置文件
Proftpd配置文件
2022-07-30 05:49:00 【大大大大小小】
3. Proftpd配置文件
配置文件:/etc/proftpd/proftpd.conf
#配置服务器名
ServerName ""blog.fens.me FTP Server"
#设置服务器运行模式,独立服务,或者被监管
ServerType standalone
#设置为默认服务器
DefaultServer on
#设置服务器进程运行使用的用户
User proftpd
#设置服务器进程运行使用的组
Group nogroup
#设置关闭IPv6支持
UseIPv6 off
#设置服务器接受请求的端口
Port 21
#设置被动模式使用的端口范围
PassivePorts 60000 65535
#设置用户上传文件的权限掩码
Umask 022
#设置用户被chroot锁定到的各自的Home目录
DefaultRoot /ftp
#关闭欢迎信息显示
DeferWelcome off
#如果显示欢迎信息,则指定显示的文件
DisplayLogin welcome.msg
#指定切换文件夹时,显示的欢迎信息
DisplayChdir .message
#设置日志
SystemLog /var/log/proftp.log
TransferLog /var/log/proftp-transfer.log
#限定操作
<Limit SITE_CHMOD>
DenyAll
</Limit>
#设置匿名用户资源
<Anonymous "/ftp/c">
...
</Anonymous>
#配置存储目录权限
<Directory "/ftp/a/" >
<Limit ALL>
AllowUser x
AllowUser a1
DenyAll
</Limit>
<Limit CWD READ RETR DIRS>
AllowAll
</Limit>
</Directory>
Limit权限说明:
- CWD : Change Working Directory 进入该目录
- MKD : Make Directory 创建目录
- RNFR : Rename from 更名
- DELE : Delete 删除文件
- RMD : Remove Directory 删除目录
- READ : 可读
- WRITE: 可写
- STOR : 可上传
- RETR : 可下载
- DIRS : 允许列出目录
- LOGIN: 允许登录
- ALL : 全部
边栏推荐
- 基于THREEJS场景中模型局部辉光效果
- npm安装nodejs环境配置
- Biotin-C6-amine_N-生物素基-1,6-己二胺_CAS:65953-56-2_100mg
- Selenium01
- 04-加壳和脱壳
- Event Delivery and Responder Chains
- From installation to compilation: 10 minutes to teach you to use and develop GraphScope locally
- I can't hide it, I want to expose the bad things about cloud native
- GAIA-IR: Parallelized Graph Query Engine on GraphScope
- Redis6的数据类型
猜你喜欢

Mastering JESD204B (1) – Debugging of AD6676

测试开发工程师成长日记017 - bug的生命周期

图计算在网络安全分析中的应用

prometheus-tls加密

Dachang's annual salary of 50w+ recruits test engineers with test platform development capabilities

原力计划微服务实战|集中配置中心Config非对称加密与安全管理

图扑数字孪生北京故宫,推进旅游业元宇宙进程

基于精灵(Sprite)管道烟雾流动效果

一种分布式深度学习编程新范式:Global Tensor

Devops基本概念和原理
随机推荐
PC DBCO-PEG3-Biotin|PC-生物素-PEG3-DBCO可用于使用无铜点击化学
04-packing and unpacking
图计算101:图计算的类型、语言与系统
The concept and testing method of black box testing
使用Apifox测试套件自动化测试接口
MySQL common commands and mysqldump backup
读取GZ包的内容代码
prometheus-federation-tls加密
掌握JESD204B(一)–AD6676的调试
原力计划微服务实战|集中配置中心Config非对称加密与安全管理
Unable to open socket file: target process not responding or HotSpot VM not loaded
I can't hide it, I want to expose the bad things about cloud native
Test Development Engineer Growth Diary 008 - Talking About Some Bugs/Use Case Management Platform/Collaboration Platform
测试开发工程师成长日记001 - 敏捷测试、CI/CD/CT、DecOps的一些介绍
多线程基础(概念,创建,中断)
GNNLab: A Novel GNN System Based on Spatial Sharing Ideas
Test Development Engineer Growth Diary 003 - Interface Automation Framework Construction
From installation to compilation: 10 minutes to teach you to use and develop GraphScope locally
Test Development Engineer Growth Diary 017 - The Life Cycle of a Bug
D-Desthiobiotin Amine_D-脱硫生物素-胺相关的产品性质