Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1086264
  • 博文数量: 135
  • 博客积分: 10182
  • 博客等级: 上将
  • 技术积分: 1565
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-07 16:05
文章分类

全部博文(135)

文章存档

2011年(5)

2010年(20)

2009年(3)

2008年(16)

2007年(91)

分类: LINUX

2007-05-21 15:54:11

1.emerge --seach ftp 搜索自己中意的版本。我选定了proftp。
2.emerge proftp 安装
3.vim /etc/proftpd/proftpd.conf
ServerName                      "ceal-ftp2"
ServerType                      standalone
DefaultServer           on
RequireValidShell       off
#AuthPAM                                off
#AuthPAMConfig          ftp
# 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
MaxInstances            30
# Set the user and group under which the server will run.
User                            lab
Group                           lab
# Normally, we want files to be overwriteable.

        AllowOverwrite          on


   
        Allowall
      


# A basic anonymous configuration, with no upload directories.

        User                            ftp
        Group                           ftp
        # We want clients to be able to login with "anonymous" as well as "ftp".
        UserAlias                       anonymous ftp
        # Limit the maximum number of anonymous logins.
        MaxClients                      10
        # We want 'welcome.msg' displayed at login, and '.message' displayed
        # in each newly chdired directory.
        DisplayLogin            welcome.msg
        DisplayChdir            .message
        # Limit WRITE everywhere in the anonymous chroot.
       
           
                Denyall
           

           
                Denyall
           

           
                Denyall
           

           
                Denyall
           

           
                Allowall
           

           
                Denyall
           

       

       
           
                Allowall
           

       

4.rc-update add proftpd default 添加到自启动中。
5./etc/init.d/proftpd start
这样ftp服务器就可以用了。
未解决的问题:
/etc/init.d/proftpd restart不行,不知为什么?希望高人指点。
阅读(1808) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~