• proftpd的示例配置文件


    # 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
    # "daemon" and "ftp" for normal operation and anon.
    
    ServerName            "ProFTPD"
    ServerType            standalone
    DefaultServer            on
    
    # Port 21 is the standard FTP port.
    Port                21
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask                022
    
    # 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 that the server normally runs at.
    User daemon
    #Group daemon
    
    # hzh add, (set all user's root dir to '/opt/ftp_files_lampp')
    DefaultRoot /opt/ftp_files_lampp
    
    # Normally, we want files to be overwriteable.
    <Directory /opt/ftp_files_lampp/*>
      AllowOverwrite        on
    </Directory>
    
    # only for the web servers content
    DefaultRoot /opt/lampp/htdocs
    
    <Limit SITE_CHMOD>                                                                                                                                                         
      DenyAll                                                                                                                                                                  
    </Limit>  
    
    # daemon gets the password "xampp"
    UserPassword daemon 2TgxE8g184G9c
    
    # daemon is no normal user so we have to allow users with no real shell
    RequireValidShell off
    
    # daemon may be in /etc/ftpusers so we also have to ignore this file
    UseFtpUsers off
    
    
    # hzh add for anonymous login
    <Anonymous /opt/ftp_files_lampp>
      # After anonymous login, daemon runs as user/group ftp.
      User daemon
      Group daemon
    
      # The client login 'anonymous' is aliased to the "real" user 'ftp'.  使用用户 anonymous 及 ftp登录,就相当于是使用 daemon登录
      UserAlias anonymous daemon
      UserAlias ftp daemon
    
      # Deny write operations to all directories, except for 'incoming' where 
      # 'STOR' is allowed (but 'READ' operations are prohibited), 只有incoming目录是可以上传的
      <Directory incoming>
        <Limit WRITE>
          AllowAll
        </Limit>
        <Limit READ>
          AllowAll
        </Limit>
        <Limit STOR>
          AllowAll
        </Limit>
      </Directory>
    
      <Directory *>
        <Limit WRITE>
          DenyAll
        </Limit>
      </Directory>
    
    </Anonymous>
  • 相关阅读:
    Python--my first try!
    AB PLC首次IP地址如何分配
    如何解压DMK固件
    罗克韦尔自动化官网如何下载设备固件
    如何使用AB PLC仿真软件Studio 5000 Logix Emulate
    Studio 5000指令IN_OUT管脚实现西门子风格
    AB PLC分类
    罗克韦尔自动化发展简史
    C#曲线分析平台的制作(五,Sqldependency+Signalr+windows 服务 学习资料总结)
    自动化监控上位机系统二次开发之我见
  • 原文地址:https://www.cnblogs.com/welhzh/p/4831697.html
Copyright © 2020-2023  润新知