使用下面的步驟來設置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
(責任編輯:A6)
[火星人 ] 配置記錄FTP傳輸情況的Linux FTP伺服器已經有353次圍觀