首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux服务器应用 > 文章内容

配置ftp服务器让其记录ftp传输情况

作者:佚名  来源:不详  发布时间:2008-7-10 8:18:00
使用下面的步骤来设置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
收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 网站帮助 - 广告合作 - 网站地图