千家信息网

Proftpd权限的设置原理是什么

发表于:2025-12-01 作者:千家信息网编辑
千家信息网最后更新 2025年12月01日,这篇文章主要讲解了"Proftpd权限的设置原理是什么",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"Proftpd权限的设置原理是什么"吧!一、测试平
千家信息网最后更新 2025年12月01日Proftpd权限的设置原理是什么

这篇文章主要讲解了"Proftpd权限的设置原理是什么",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"Proftpd权限的设置原理是什么"吧!

一、测试平台

Debian 4.0r3

Proftpd 1.3.1 (WITH SSL)

二、原理简介

1、 继承性

子目录会继承其父目录的属性。

2、 优先级

优先级由大到小的顺序:

原始FTP命令(LIST DELE等) > 命令组(DIRS READ WRITE) > ALL命令组

3、 访问控制的应用顺序

不论出现顺序如何,先应用拒绝(Deny),后应用允许(Allow)

4、系统权限

Linux系统权限仍然起作用。如果设置了目录test的允许写,但是该用户对test目录只有

读权限,这是该用户就不能向test目录写入。

----------------- 1、继承性

------------------------- 2、优先级

AllowUser u1 -------------------- 3、访问控制的应用顺序

DenyAll

一点解释:根据参考1所述,访问控制的顺序应该是与其出现顺序有关,但是在我的测试中发现出现顺序没有什么影响。也就是说,像上面的访问控制,AllowUser u1和DenyAll哪个在前面都一样。

三、实例

1、简介

假设proftpd服务器上有5个用户:

manager, manA1, manA2, manB1, manB2

和2个组:

groupA, groupB

manA1和manA2属于groupA组,manB1和manB2属于groupB组。

并且有如下目录结构:

/根目录   │   ├ftproot/   │ ├manager/   │ │   │ ├groupA/   │ │ ├A1/   │ │ ├A2/   │ │ └.../   │ │   │ ├groupB/   │ ├B1/   │ ├B2/   │ └.../   │   └.../

现在要实现的权限:

1、用户manager可以读写manager、groupA、groupB目录及它们的的子目录。

2、manA1可以读写A1目录,并且可以读写groupB的所有子目录。

3、manA2可以读写A2目录,并且可以读写groupB的所有子目录。

4、manB1可以读写B1目录。

5、manB2可以读写B2目录。

6、如果一个用户没有某个目录的访问权限,那么该用户就不能看到此目录。

7、只允许manger用户和groupA、groupB组成员访问FTP服务器。

8、不允许任何人破坏主干目录结构

2、实现

(1)添加用户和组

useradd manager

passwd manager

groupadd groupA

groupadd groupB

useradd manA1

passwd manA1

usermod -G groupA manA1

useradd manA2

passwd manA2

usermod -G groupA manA2

useradd manB1

passwd manB1

usermod -G groupB manB1

useradd manB2

passwd manB2

usermod -G groupB manB2

(2)配置文件

# This is a basic ProFTPD configuration file (rename it to   # 'proftpd.conf' for actual use. It establishes a single server   # and a single anonymous login. It assumes that you have a user/group   # "nobody" and "ftp" for normal operation and anon.

ServerName "Formax BPO FTP Server"

ServerType standalone

DefaultServer on

# Port 21 is the standard FTP port.

Port 21

UseReverseDNS off

IdentLookups off# Umask 022 is a good standard umask to prevent new dirs and files

# from being group and world writable.

Umask 000

# To prevent DoS attacks, set the maximum number of child processes   # to 30. If you need to allow more than 30 concurrent connections   # at once, simply increase this value. Note that this ONLY works   # in standalone mode, in inetd mode you should use an inetd server   # that allows you to limit maximum number of processes per service   # (such as xinetd).

MaxInstances 30

# Set the user and group under which the server will run.

User nobody

Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home   # directory, uncomment this line.   # DefaultRoot ~

DefaultRoot /ftproot

# Normally, we want files to be overwriteable.

AllowOverwrite on

AllowStoreRestart on

ServerIdent off

TLSEngine on

TLSLog /var/ftpd/tls.log

TLSProtocol SSLv23

# Are clients required to use FTP over TLS when talking to this server?

TLSRequired on

# Server's certificate

TLSRSACertificateFile /etc/proftpd.cert

TLSRSACertificateKeyFile /etc/proftpd.key

# CA the server trusts

TLSCACertificateFile /etc/proftpd.cert

# Authenticate clients that want to use FTP over TLS?

TLSVerifyClient off

TLSOptions NoCertRequest

# Allow SSL/TLS renegotiations when the client requests them, but   # do not force the renegotations. Some clients do not support   # SSL/TLS renegotiations; when mod_tls forces a renegotiation, these   # clients will close the data connection, or there will be a timeout   # on an idle data connection.

TLSRenegotiate required off

# Bar use of SITE CHMOD by default

感谢各位的阅读,以上就是"Proftpd权限的设置原理是什么"的内容了,经过本文的学习后,相信大家对Proftpd权限的设置原理是什么这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!

目录 权限 用户 顺序 原理 子目 子目录 应用 控制 优先级 命令 学习 内容 服务器 简介 系统 结构 继承性 服务 测试 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 数据库文件不能脱机 数据库中查询表的定义 文锐数据库排版 网络安全法关于人员配备 我的世界如何关闭服务器聊天 济南手机软件开发报价 吉大网络技术实习终稿 上海特定网络技术转让材料 数据库查询怎么使用多连接 无锡易飞软件开发 谷歌工程师怎么提高数据库 数据库表多对多关系注意事项 美国mstar数据库 外行怎样管理软件开发 各细胞在不同组织中比例数据库 软件开发岗位层级 网络安全面临的危险有哪些英语 悠悠有品服务器炸了 深朗软件开发怎么样 第一视频北京网络技术有限 django创建数据库表图片 服务器安全狗软件好用吗 数据库技术研究资料 全球网络安全委员会简称 项目中的数据库执行计划 无尽的拉格朗日怎么查找自己登录的服务器 sql命令 数据库 陕西汉中网络安全教育 telnet服务器简单解释 安徽高科技软件开发供应商
0