由 uci 在 09-14-2002 08:14 发表:
ftp不能登陆
我在redhat7.3中配了wu-ftp,可用其他机子连过来时提示
ftp:未知错误号
请高手帮帮忙
由 北南南北 在 09-14-2002 08:19 发表:
把配制文件发上来,让高手弟兄们研究研究。
===========================
请弟兄们发帖时要写个好标题,多谢!
===========================
每天以1000KM/H的速度在跑,感觉还是时间不够:(
“西学东渐,洋为中用” + 创造 = ?
linux ppc
由 uci 在 09-14-2002 20:42 发表:
上面的问题我已经解决了
但是我配了两个ftp服务器,一个只能上传,一个只能下载
我觉得我什么都照书配好了,不知道哪里漏掉了
大家都给我些提示吧
由 afanofamd 在 09-15-2002 10:32 发表:
看看你的ftpaccess文件啊,否则怎么知道问题啊
欢迎光临我的论坛
还有我的ftp,24小时不关机的哦
请上传到upload目录
My Site is powered by FreeBSD4.9-Stable
由 uci 在 09-15-2002 13:17 发表:
好象是上传目录权限的问题,请问怎么改
由 北南南北 在 09-15-2002 16:01 发表:
uci兄弟,afanofamd兄说的对,你把那个文件传上来,大家就能研究了,只说“好象好象是上传目录权限的问题,请问怎么改”可能不是解决问题的方法。因为linux的问题不能用WINDOWS的方法来解决,我们只有把问题说清楚了,我们才能研究。。
不知道我说的有没有道理。
===========================
请弟兄们发帖时要写个好标题,多谢!
===========================
每天以1000KM/H的速度在跑,感觉还是时间不够:(
“西学东渐,洋为中用” + 创造 = ?
linux ppc
由 uci 在 09-16-2002 09:17 发表:
不好意思,我这就贴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
The ftpchroot group doesn't exist by default, this
entry is just supplied as an example.
To chroot a user, modify the line below or create
the ftpchroot group and add the user to it.
guestuser *
You will need to setup the required applications
and libraries in the root directory (set using
guest-root).
anonymous_root /var/ftp
Look at the anonftp package for the files you'll need.
guestgroup ftpchroot
User classes...
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
upload /var/ftp * no
upload /var/ftp /upload yes root ftp 0600 nodirs
由 afanofamd 在 09-16-2002 09:53 发表:
想问你几个问题:
1.这个ftpaccess是哪个啊,你说一个只能上传,一个只能下载
2.这种现象发生在real用户还是anonymous用户?还是两种都这样
欢迎光临我的论坛
还有我的ftp,24小时不关机的哦
请上传到upload目录
My Site is powered by FreeBSD4.9-Stable
由 uci 在 09-16-2002 09:58 发表:
是不能上传
anonymous用户
由 afanofamd 在 09-16-2002 10:16 发表:
你试着把最后两行upload注释掉
还有确保ftp用户对/var/ftp目录有写的权限
chown -R ftp.ftp /var/ftp/
upload /var/ftp * no
upload /var/ftp /upload yes root ftp 0600 nodirs
这是你的两句话,
第一句话,禁止向任何目录上传
第二句话,只有ftp组里的root用户才可以向/upload目录上传
你改成这样的试试看
upload /var/ftp * no
upload /var/ftp /upload yes ftp daemon 0666
欢迎光临我的论坛
还有我的ftp,24小时不关机的哦
请上传到upload目录
My Site is powered by FreeBSD4.9-Stable
由 uci 在 09-16-2002 14:37 发表:
我已经搞好