LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1138|回复: 5

红旗4.0(不是服务器版)安装了proftpd-1.2.9,proftpd能启动,但是用gftp打不开???

[复制链接]
发表于 2004-1-29 03:30:58 | 显示全部楼层 |阅读模式
我在红旗桌面版上编译安装了proftpd-1.2.9,安装启动一切顺利!但是用gftp连接的时候显示:
查找 localhost.localdomain
尝试 localhost.localdomain:21
连接到 localhost.localdomain:21
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [localhost.localdomain]
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS xxxx
530-Unable to set anonymous privileges.
530 Login incorrect.
正在断开与服务器 localhost.localdomain 的连接
这是什么问题呀?请帮帮我呀!
付:proftpd.conf文件
# 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 "roFTPD Default Installation"
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 under which the server will run.
User nobody
Group nobody

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

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
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
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>

__________________
发表于 2004-1-29 17:28:47 | 显示全部楼层
Anonymous login ok, send your complete email address as your password.
PASS xxxx
530-Unable to set anonymous privileges.
没有匿名用户啊 你的proftpd.conf中要alais xxxx
发表于 2004-1-30 13:43:22 | 显示全部楼层
我一直按照xchen的配置没问题proftp1.28
配置/usr/local/proftpd/etc/proftpd.conf文件:
vi /usr/local/proftpd.conf
ServerName "Xchen FTP server" //服务器登录提示
ServerType standalone
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nobody //原来为nogroup,请改成nobody
RequireValidShell off //手动添加此名,重要
//限定test组用户只能访问自己的home目录,而不能向上浏览
DefaultRoot ~ test
//限定test组用户只能访问自己的/home/ftp目录,不能向上浏览
DefaultRoot ~/ftp test
//限定music组用户只能访问/home/music目录,不能向上浏览
DefaultRoot /home/ftp music
//除music组中bb用户外都能访问/home/music目录,不能向上浏览
DefaultRoot /home/ftp music,!bb
//上面组需要自己建立:groupadd test,gpasswd –a username test
ServerIdent off //登录时不显示版本信息
<Directory /*>
AllowOverwrite on
</Directory>
<Anonymous /home/ftp> // /home/ftp为匿名用户登录目录
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
发表于 2004-1-30 13:44:20 | 显示全部楼层
还有ftp这个用户我做的时候是自己建立的其他用户
匿名进去后密码是这个建立的用户的密码不是email信箱
 楼主| 发表于 2004-1-31 02:06:13 | 显示全部楼层

谢谢!还是有问题

非常感谢楼上的大熊宝宝和dancingpig,因为我是个linux的新手,所以具体的操作能否请dancingpig兄详细的告诉我!
我的配置主要是没有创建用户和密码是吗?
RequireValidShell off //手动添加此名 是不是把这个打到proftpd.conf文件中?
//限定test组用户只能访问自己的home目录,而不能向上浏览
DefaultRoot ~ test
//限定test组用户只能访问自己的/home/ftp目录,不能向上浏览
DefaultRoot ~/ftp test
//限定music组用户只能访问/home/music目录,不能向上浏览
DefaultRoot /home/ftp music
//除music组中bb用户外都能访问/home/music目录,不能向上浏览
DefaultRoot /home/ftp music,!bb
这几个是不是要在终端下来做?
创建组的具体步骤要怎么来做?
请dancingpig多多包涵,因为我刚用linux,而且又特别笨!
 楼主| 发表于 2004-2-1 02:14:25 | 显示全部楼层

已经搞好!谢谢

是我的proftp.conf配置有点问题,加了RequireValidShell   off这句后就正常了!现在可以匿名登陆了!谢谢
非常感谢斑竹大熊宝宝和dancingpig!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表