免费注册 查看新帖 |

Chinaunix

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

[FTP] 各位,帮忙看这个proftp.conf [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-26 16:54 |只看该作者 |倒序浏览
登陆不上
#This is sjzxftp server,directed
#
###############################################
#about server base setting
ServerName                      "General-FTP"
ServerType                      inetd
#
# don't give the server banner until _after_ authentication
DeferWelcome                        off
#
# Some basic defaults
#
Port                  21
Umask                002
TimeoutLogin         120
TimeoutIdle          600
TimeoutNoTransfer    900
TimeoutStalled      3600
#
User                                test
Group                                ftpuser
#
# Performance, let's do DNS resolution when we process the logs...
UseReverseDNS        off
# Where do we put the pid files?
ScoreboardPath                        /ftphome2/proftpd
# Logging options
TransferLog                        /ftphome2/proftpd.log/xferlog.legacy
#
# Some logging formats
#
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"
#
# Global settings
#
<Global>;
        DisplayLogin                   welcome.msg
        DisplayFirstChdir           readme
        #
        # having to delete before uploading is a pain
        #
        AllowOverwrite                   yes
        #
        # Turn off Ident lookups
        #
        IdentLookups         off
        #
        # Logging
        #
        # file/dir access
        #
        ExtendedLog                /ftphome2/proftpd/access.log WRITE,READ write
        #
        #
        # Record all logins
        #
        ExtendedLog                /ftphome2/proftpd/auth.log AUTH auth
        #
        # Paranoia logging level....
        #
</Global>;

#
# Deny writing to the base server...
#
<Limit WRITE>;
        DenyAll
</Limit>;
# --------------------------------------------
# Virtual Servers start here....
#
# (Note: this is normally auto generated by a
# script written in house).
# --------------------------------------------
#
#
# This is the default server
# Gets all the connections for xm.net
#
<VirtualHost /ftphome1>;
        ServerAdmin                admin@xm.net
        MaxLoginAttempts        2
        RequireValidShell        no
        MaxClients                30
        DefaultServer                on
        DefaultRoot                ~ !staff
        AllowOverwrite                yes
        # --------------------------------------------
        <Directory /ftphome1/software>;
                <Limit CDUP CWD STOR RNFR READ>;
                        AllowAll
                </Limit>;       
        </Directory>;
        #
        # Limit directory upload
        #
        <Directory /ftphome1/upload>;
           <Limit ALL>;
            DenyAll
           </Limit>;

           <Limit CWD XCWD XCUP MKD>;
            AllowAll
           </Limit>;

           <Limit STOR STOU>;
            AllowAll
           </Limit>;       
        </Directory>;       
</VirtualHost>;

论坛徽章:
0
2 [报告]
发表于 2003-10-26 19:56 |只看该作者

各位,帮忙看这个proftp.conf

我通过单独运行程序,没有错误提示,不过通过自己的测试,发现upload目录出不来,于是只好改成:
<Directory /ftphome1>;
                <Limit ALL>;
                        AllowAll
                </Limit>;
</Directory>;

我原本的意思是/ftphome1下面有几个目录,只有upload可以读写和建立,其他的只能读,发现通过Directory嵌套比较难实现,所有干脆通过chmod 修改文件夹的权限来实现。

不知你们是怎么处理的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP