免费注册 查看新帖 |

Chinaunix

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

[FTP] proftpd [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-10-11 04:01 |只看该作者 |倒序浏览
I downloaded and installed the proftpd ....

[root@rhwebapp root]# /usr/local/sbin/proftpd
- warning: AuthPAMAuthoritative is deprecated
[root@rhwebapp root]# ps -aux | grep ftp
nobody    1346  0.0  0.1  2380 1240 ?        S    13:51   0:00 proftpd: (accepti
root      1348  0.0  0.0  1732  580 pts/0    S    13:51   0:00 grep ftp

it looks okay for me ....   but when I try to ftp to the server it gave
[root@rhwebapp root]# ftp localhost
Connected to localhost (127.0.0.1).
421 Service not available, remote server has closed connection
ftp>; quit

What could be the problem?
what about the warning with PAM?
my configuration file (part of it)

# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# 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
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "THIS FTP SERVER IS RESTRICTED TO AUTHORIZED USERS"
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

DebugLevel                     9
SystemLog                      /var/log/proftpdlog
TransferLog                    /var/log/xferlog



# 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                    2

ScoreboardFile                  /var/run/proftpd
RequireValidShell               off

AuthPAMAuthoritative            off

# Set the user and group under which the server will run.
User                            nobody
Group                           nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
......

论坛徽章:
0
2 [报告]
发表于 2004-10-11 09:02 |只看该作者

proftpd

/usr/local/sbin/proftpd
请问你是不是把proftpd安装到这里了!
如果你是源码安装的话,你到到你设定的prefix参数所设定的目录中去找sbin然后再到其下去运行proftpd
你的错误信息好象是这个proftpd根本没有运行或是安装错误!你检查一下吧!

论坛徽章:
0
3 [报告]
发表于 2004-10-15 03:49 |只看该作者

proftpd

yep it works now added localhost to <LIMIT LOGIN>;

I want to enforce my proftpd to listen on another IP A.B.C.D than the primary IP X.Y.Z.W
I mean to listen on another interface with another IP which is not the Primary
can any one help in this issue, where to alocate virtualhost and what should be inside
my config file
----//-------------
ServerName                      "FTP SERVER"
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

DebugLevel                     9
SystemLog                      /var/log/proftpdlog
TransferLog                    /var/log/xferlog
MaxInstances                    2

ScoreboardFile                  /var/run/proftpd
RequireValidShell               off

AuthPAMAuthoritative            off

# Set the user and group under which the server will run.
User                            nobody
Group                           nogroup

<Directory />;
  AllowOverwrite                on
</Directory>;

<Limit LOGIN>;
Order allow,deny
Allow from 127.0.0.1,.trusted-domain.org
Deny from all
</Limit>;



<Anonymous ~ftp>;
   user                  abc
   group                 ftp

   AnonRequirePassword   on
</Anonymous>;


<Anonymous ~ftp>;
   user                  xyz
   group                 ftp

   AnonRequirePassword   on
</Anonymous>;
---------------//-------------------
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP