配置ftp服务器记录FTP日志 [ 网站地图 ]

发表于:2010-12-17 浏览:124 作者: 来源:互联网

关键字:FTP服务器,FTP日志

描述:使用下面的步骤来设置ftp进行日志记录:1.#cp/etc/inetd.conf/etc/inetd.conf.bak2.#vi/etc/inetd.conf编辑如下的ftp行,在最后加上-l标志:ftpstreamtcp6nowaitroot/usr/sbin/ftpdftpd-l3.#vi/etc/syslog

使用下面的步骤来设置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

站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号