免费注册 查看新帖 |

Chinaunix

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

[FTP] proftpd的配置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-22 17:12 |只看该作者 |倒序浏览
proftpd已经配置安装完毕,proftpd.conf也已配置,现在ftp可以使用,但无法将用户限定在自己的home目录下,请问如何处理?下面是我的proftpd.conf文件:
ServerName                        "FTP"
ServerType                        standalone
DefaultServer                        on
Port                                21
Umask                                022
MaxInstances                        30
User                        nobody
Group                        nobody
DefaultRoot                    ~
<Directory />;
  AllowOverwrite                on
</Directory>;
ServerIdent off
RequireValidShell off

论坛徽章:
0
2 [报告]
发表于 2003-10-23 08:47 |只看该作者

proftpd的配置问题

等待ing……

论坛徽章:
0
3 [报告]
发表于 2003-10-23 09:24 |只看该作者

proftpd的配置问题

  1. # A basic anonymous configuration, no upload directories.
  2. <Anonymous /mnt/backup/download/>;

  3. AccessDenyMsg "别急别急,慢慢来,擦..."
  4. AccessGrantMsg "到cloud家啦,可要乖乖的哦..."

  5. #Allow ffskyer login
  6. <Limit LOGIN>;
  7.   AllowAll
  8. </Limit>;

  9.   User                                ffskyer
  10.   Group                                ffskyer
  11.   AnonRequirePassword                on

  12.   # We want clients to be able to login with "anonymous" as well as "ftp"
  13. #   UserAlias                        anonymous        ftp

  14.   # Limit the maximum number of anonymous logins
  15.   MaxClients                        10 "晕,人太多了,过会儿再试试"

  16.   # We want 'welcome.msg' displayed at login, and '.message' displayed
  17.   # in each newly chdired directory.
  18.   DisplayLogin                        welcome.msg
  19.   DisplayFirstChdir                .message


  20.   # Limit WRITE everywhere in the anonymous chroot
  21.   <Limit WRITE>;
  22.     DenyAll
  23.   </Limit>;

  24. </Anonymous>;
复制代码


你那样是不行的,给你的最后加上上边的文字,根据你自己的情况修改一下。想把FTP用户限定在哪个目录,在<Anonymous /mnt/backup/download/>;设定。


以上
喜欢新田由加的siyeclover

论坛徽章:
0
4 [报告]
发表于 2003-10-27 17:10 |只看该作者

proftpd的配置问题

谢谢siyeclover 的回复,但好像你给的代码不是我想要的东东,目前问题已经解决,原因也是莫名其妙:再重启系统若干次后,kill proftpd进程再proftpd start若干次后,终于有一次重启后,成功限制用户的目录权限。但现在仍有问题存在,在proftpd.conf添加 RootLogin on 后,仍然不能由root用户ftp登录,不知何故?

论坛徽章:
0
5 [报告]
发表于 2004-03-20 20:38 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP