使用下面的步驟來設置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
配置記錄FTP傳輸情況的Linux FTP服務器
更新時間: 2008-03-07 13:54:01來源: 粵嵌教育瀏覽量:374