![在ProFTPd中,如何为不同的虚拟用户设置不同的权限?](https://linux22.com/image/747587/%E5%9C%A8ProFTPd%E4%B8%AD%EF%BC%8C%E5%A6%82%E4%BD%95%E4%B8%BA%E4%B8%8D%E5%90%8C%E7%9A%84%E8%99%9A%E6%8B%9F%E7%94%A8%E6%88%B7%E8%AE%BE%E7%BD%AE%E4%B8%8D%E5%90%8C%E7%9A%84%E6%9D%83%E9%99%90%EF%BC%9F.png)
如何在ProFTPd中为不同的虚拟用户设置不同的权限?
我使用该ftpasswd
命令创建了几个用户,但目前他们都有读取和写入各自文件夹的权限。我想为某些用户保留这些完全权限,但将其他一些用户限制为只读。尝试谷歌搜索并阅读官方文档,但我找不到任何相关信息。
这是我的 proftpd.conf,如果有帮助的话:
DefaultRoot ~
ServerIdent on "FTP Server ready."
RootLogin off
AllowOverwrite on
RequireValidShell off
AuthUserFile /etc/proftpd/ftpd.passwd
LogFormat default «%h %l %u %t «%r» %s %b»
LogFormat auth «%v [%P] %h %t «%r» %s»
LogFormat write «%h %l %u %t «%r» %s %b»
SystemLog /var/log/proftpd/proftpd.log
TransferLog /var/log/proftpd/xfer.log
ExtendedLog /var/log/proftpd/access.log WRITE,READ write
ExtendedLog /var/log/proftpd/auth.log AUTH auth
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
Port 21
UseIPv6 off
Umask 022
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
#############
# SFTP ZONE #
#############
<VirtualHost 0.0.0.0>
<IfModule mod_sftp.c>
DefaultRoot ~
RootLogin off
AllowOverwrite on
AuthUserFile /etc/proftpd/ftpd.passwd
RequireValidShell off
SFTPEngine on
Port 2122
SFTPLog /var/log/proftpd/sftp.log
SFTPHostKey /etc/ssh/ssh_host_rsa_nopass
SFTPAuthMethods password
SFTPOptions AllowInsecureLogin
ServerIdent on "FTP Server ready."
TransferLog /var/log/proftpd/xfer.log
ExtendedLog /var/log/proftpd/access.log WRITE,READ write
ExtendedLog /var/log/proftpd/auth.log AUTH auth
</IfModule>
</VirtualHost>
那么,我该如何允许某些用户写入目录,而禁止其他用户写入目录?以防万一,我不想允许匿名用户,所以我正在寻找一个不允许匿名登录的解决方案