由 hjtyan 在 11-26-2002 11:08 发表:
wu-ftpd
linux服务器装好后使用ftp服务出现以下问题,请问为什么?
ftp>put e:/downsoftware/samba-2.2.3a-6.i386.rpm
502 Illegal PORT Command
425 Can't build data connection :Connection refused
数据无法传输。
Redhat7.3系统,wu-ftpd
ftpaccess配置文件如下:
This file controls the behavior of the wu-ftpd
ftp server.
If you're looking for a graphical frontend to
editing it, try kwuftpd from the kdeadmin
package.
Don't allow system accounts to log in over ftp
deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid ftp
allow-gid ftp
Chroot all users to their home directory by default
(comment this out if you don't want to chroot most of your users)
guestuser *
If you wish to allow user1 and user2 to access other
directories, use the line below:
realuser user1,user2
The ftpchroot group doesn't exist by default, this
entry is just supplied as an example.
"/etc/ftpaccess" 72L, 1906C
the ftpchroot group and add the user to it
You will need to setup the required applications
and libraries in the root directory (set using
guest -root)
#Look at the anonftp package for the files you'll need
guestgroup ftpchroot
User class
class all real,guest,anonymous *
set this to your email address
email root@localhost
Allow 5 mistyped passwords
loginfails 5
Notify the users of README files at login and when
changing to a different directory
readme README* login
readme README* cwd=*
Messages displayed to the user
message /welcome.msg login
message .message cwd=*
Allow on-the-fly compression and tarring
compress yes all
tar yes all
Prevent anonymous users (and partially guest users)
from executing dangerous commands
chmod no guest,anonymous
delete no anonymous
overwrite no anonymous
rename no anonymous
Turn on logging to /var/log/xferlog
log transfers anonymous,guest,real inbound,outbound
If /etc/shutmsg exists, don't allow logins
see ftpshut man page
shutdown /etc/shutmsg
Ask users to use their email address as anonymous
password
passwd-check rfc822 warn
请问要改哪儿,如何改?
另外用匿名用户登陆以后上传文件入下:
ftp>put e:/downsoftware/samba-2.2.3a-6.i386.rpm
502 Illegal PORT Command
553 samba-2.2.3a-6.i386.rpm:Permission denied on server.(Upload)
ftp>
如何修改?
由 dancingpig 在 11-26-2002 13:55 发表:
你登陆可以的吧,好象上传不允许。sorry很早学的忘记了怎么改。
由 solaris 在 11-26-2002