使用下面的步骤来设置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服务器的全部内容,更多相关配置FTP传输记录情况的Linux内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复