LinuxSir.cn,穿越时空的Linuxsir!

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

BTworm老大,你一定要帮帮我呀!(匿名用户不可以登陆)

[复制链接]
发表于 2003-5-15 08:35:10 | 显示全部楼层 |阅读模式
就是关于proftpd的问题...我现在是系统用户可以登陆,但是匿名用户不可以..

怎么办???
 楼主| 发表于 2003-5-15 09:01:59 | 显示全部楼层
[root@linuxserver etc]# ../sbin/proftpd restart
[root@linuxserver etc]# ftp localhost
Connected to linuxserver.
220 ProFTPD 1.2.8 Server (hgkrt.minidns.net) [linuxserver]
Name (localhost:hgkrt): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.

显示就是这样,改了好几次了...都不行...
发表于 2003-5-15 09:43:45 | 显示全部楼层

应该还是目录的问题啊

建立一个/var/ftp试试看,或者改一下proftpd.conf,确保ftp用户的目录存在
 楼主| 发表于 2003-5-15 09:46:14 | 显示全部楼层
必须要有ftp目录嘛??

我设置的是/web/ftp...在anonymous里...
发表于 2003-5-15 10:13:51 | 显示全部楼层

问题是你的proftpd.conf里面设置的目录是什么?

必须确保这个目录存在
 楼主| 发表于 2003-5-15 10:20:21 | 显示全部楼层
我是这么设置的...


ServerName "hgkrt.minidns.net"
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

# Allow anonymous login
RequireValidShell off

# Display server info,off is not display
ServerIdent off
# 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 /web/ftp

# 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 /web/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>
发表于 2003-5-15 10:25:32 | 显示全部楼层
不知道了,看不出错误
 楼主| 发表于 2003-5-15 10:33:18 | 显示全部楼层
我刚才又重装了一次...然后就把它的proftpd.conf里的<anonymous ~ftp>改成<anonymous /web/ftp>,

然后启动后发现,还是不能登陆...用匿名...系统用户还是可以...
发表于 2003-5-15 10:35:57 | 显示全部楼层
mkdir /web/ftp
注意这个目录的权限,ls -l 查看。
可以用 chown 修改,如:
chown -R ftp:ftp /web/ftp
 楼主| 发表于 2003-5-15 10:40:35 | 显示全部楼层
对呀,我怎么没做这个..这就去..多谢老大指点...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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