欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

配置FTP传输记录情况的Linux FTP服务器

程序员文章站 2022-07-09 17:24:43
使用下面的步骤来设置ftp进行日志记录: 1.# cp /etc/inetd.conf /etc/inetd.conf.bak 2.# vi /etc/inetd.conf...
使用下面的步骤来设置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