免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2568 | 回复: 8
打印 上一主题 下一主题

[FTP] 请教LIST权限问题~! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-02-27 16:19 |只看该作者 |倒序浏览
我在红帽子下装了PROFTPD,想要用户有下载权限但是没有LIST权限,请教如何设置!

论坛徽章:
0
2 [报告]
发表于 2003-02-28 15:24 |只看该作者

请教LIST权限问题~!

这里的论坛好象回答问题没有以前快了嘛!

论坛徽章:
0
3 [报告]
发表于 2003-02-28 16:56 |只看该作者

请教LIST权限问题~!

没有LIST权限.那你怎么能查找你想下载的东西啊

论坛徽章:
0
4 [报告]
发表于 2003-02-28 16:58 |只看该作者

请教LIST权限问题~!

他想别人只能下载他给出具体链接的东西.

论坛徽章:
0
5 [报告]
发表于 2003-02-28 17:05 |只看该作者

请教LIST权限问题~!

啊,这样好象对FTP不行(应该说我不知道,哈哈),一般实现这个功能可以通过 WEB服务器实现啊

论坛徽章:
0
6 [报告]
发表于 2003-03-03 22:52 |只看该作者

请教LIST权限问题~!

我现在也需要这样一种功能,在proftp下怎么实现阿?
不过今天偶然在wu-ftp下实现了,现在还没相通是怎么回事。

关注本话题

论坛徽章:
0
7 [报告]
发表于 2003-03-03 23:29 |只看该作者

请教LIST权限问题~!

我这里的list用户
<Anonymous /home>;^M
  User                          list^M
  Group                         list^M
  MaxClientsPerUser             20^M
  MaxClientsPerHost             1^M
  DisplayLogin                  welcome.msg^M
  <Limit WRITE>;^M
    DenyAll^M
  </Limit>;^M
  <Limit READ>;^M
    DenyAll^M
  </Limit>;^M
</Anonymous>;^M

论坛徽章:
0
8 [报告]
发表于 2003-03-05 09:27 |只看该作者

请教LIST权限问题~!

Limit
Name
Limit -- Set the commands/actions to be controlled
Synopsis
Limit [ <Limit command|command-group [command2 ..]>;]



Default
None

Context
server config, <VirtualHost>;, <Directory>;, <Anonymous>;, <Global>;, .ftpaccess

Module
mod_core

Compatibility
0.99.0 and later

Description
The Limit configuration block is used to place access restrictions on one or more FTP commands, within a given context. Limits flow downward, so that a Limit configuration in the server config context applies to all <Directory>; and <Anonymous>; blocks that also reside in the configuration; until it is overridden by a "lower" <Limit>; block. Any number of command parameters can be specified, against which the contents of the <Limit>; block will be applied. command can be any valid FTP command, but is generally one of the following: CWD (Change Working Directory) Sent by client when changing directories. MKD / XMKD (MaKe Directory) Sent by client to create a new directory. RNFR (ReName FRom), RNTO (ReName TO) Sent as a pair by client to rename a directory entry. DELE (DELEte) Sent by client to delete a file. RMD / XRMD (ReMove Directory) Sent by client to remove a directory. RETR (RETRieve) Transfer a file from the server to the client. STOR (STORe) Transfer a file from the client to the server. In addition, the following command-groups are accepted. They have a lower precedence than real commands, meaning that a real command limit will always be applied instead of the command-group. READ All FTP commands which deal with file reading (directory listing not included): RETR, SITE, SIZE, STAT WRITE All FTP commands which deal with file or directory write/creation/deletion: APPE, DELE, MKD, RMD, RNTO, STOR, XMKD, XRMD DIRS All FTP commands which deal with directory listing: CDUP, CWD, LIST, MDTM, NLST, PWD, RNFR, XCUP, XCWD, XPWD ALL ALL FTP commands (identical to READ WRITE DIRS). Note this group has the lowest precedence of all; it will not override a limit imposed by another command-group (e.g. DIRS). Finally, a special command is allowed which can be used to control login access: LOGIN Connection or login to the server. Applying a <Limit>; to this pseudo-command can be used to allow or deny initial connection or login to the context. It has no effect, and is ignored, when used in a context other than server config, <VirtualHost>; or <Anonymous>; (i.e. using it in a <Directory>; context is meaningless). <Limit>; command restrictions should not be confused with file/directory access permission. While limits can be used to restrict a command on a certain directory, they cannot be used to override the file permissions inherent to the base operating/file system. The following FTP commands cannot be restricted via <Limit>;: ABOR HELP MODE (not implemented, always S) NOOP PASS (use <Limit LOGIN> PASV PORT QUIT REST (use AllowRetrieveRestart, AllowStoreRestart) STRU (not implemented, always F) SYST TYPE USER (use <Limit LOGIN>

论坛徽章:
0
9 [报告]
发表于 2003-03-05 09:57 |只看该作者

请教LIST权限问题~!

呵呵,我那天试了一下,已经解决了!
具体方法
<Limit LIST>;
DenyAll
</Limit>;
很简单吧!大家可以试验一下!
当然LIMIT里可以加上其他的限制!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP