免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
论坛 操作系统 AIX ftp
最近访问板块 发新帖
查看: 2372 | 回复: 1
打印 上一主题 下一主题

[新手入门] ftp [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-18 17:24 |只看该作者 |倒序浏览
使用下面的步骤来设置ftp进行日志记录:
1.# cp /etc/inetd.conf /etc/inetd.conf.bak
2.# vi /etc/inetd.conf
编辑如下的ftp行,在最后加上-l标志:
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -l

3.# vi /etc/syslog.conf
在syslog.conf文件的最后加上下面的行:
daemon.info /tmp/ftp.log

4.# touch /tmp/ftp.log
5.# refresh -s inetd
6.# refresh -s syslogd
                             但是在/tmp/ftp.log里有一些错误,请大哥帮帮忙?
promappbak:[/etc]#more /tmp/ftp.log
Oct 18 16:13:51 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:14:30 promappbak daemon:err|error last message repeated 11 times
Oct 18 16:14:45 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:16:06 promappbak daemon:err|error last message repeated 17 times
Oct 18 16:16:12 promappbak daemon:info ftpd[303190]: connection from ::ffff:10.106.65.106 at Thu Oct 18 16:16:12 2007
Oct 18 16:16:16 promappbak daemon:notice ftpd[303190]: FTP LOGIN REFUSED FROM ::ffff:10.106.65.106, root
Oct 18 16:16:21 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:16:36 promappbak daemon:err|error last message repeated 8 times
Oct 18 16:16:45 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:17:12 promappbak daemon:err|error last message repeated 4 times
Oct 18 16:17:17 promappbak daemon:info ftpd[377070]: connection from ::ffff:10.106.65.106 at Thu Oct 18 16:17:17 2007
Oct 18 16:17:18 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:17:21 promappbak daemon:notice ftpd[377070]: FTP LOGIN REFUSED FROM ::ffff:10.106.65.106, novots
Oct 18 16:17:33 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:18:30 promappbak daemon:err|error last message repeated 14 times
Oct 18 16:18:45 promappbak daemon:err|error snmpd[225398]: EXCEPTIONS: authentication error: invalid community name: public
Oct 18 16:19:42 promappbak daemon:err|error last message repeated 14 times

论坛徽章:
0
2 [报告]
发表于 2007-10-18 17:26 |只看该作者
我的系统是AIX5.3的
Chinaunix 论坛 操作系统 AIX ftp
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP