歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> 配置FTP傳輸記錄情況的Linux FTP服務器

配置FTP傳輸記錄情況的Linux FTP服務器

日期:2017/3/2 16:32:06   编辑:Linux服務器
使用下面的步驟來設置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
Copyright © Linux教程網 All Rights Reserved