« sendmail からのエラーメッセージについて | メイン | savecore のディレクトリが昔のホスト名で作成される »

2000年2月24日

ftp のログを取得する方法

下記の設定により ftp のログの取得が可能です。

1. /etc/syslog.conf ファイルの設定

sun% su
Password: xxxxxxxx
# vi /etc/syslog.conf
:
daemon.debug /var/adm/ftplog
^^^^
タブを入力すること

# touch /var/adm/ftplog

# /etc/init.d/syslog stop
Stopping the syslog service.
# /etc/init.d/syslog start
syslog service starting.

2. /etc/inetd.conf ファイルの設定

# vi /etc/inetd.conf
:
# Ftp and telnet are standard Internet services.
#
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd -ld
^^^
l と d オプションの追加

# ps -ef | grep inetd
root 143 1 0 13:28:24 ? 0:00 /usr/sbin/inetd -s
# kill -HUP 143

3. 設定したシステムに ftp を実行後、/var/adm/ftplog ファイルを確認してみて
下さい。

投稿者 AJ : 2000年2月24日 11:35

トラックバック

このエントリーのトラックバックURL:
http://www.factory-aj.com/cgi/mtctrl/mt-tb.cgi/134

 
Powered by Movable Type 4.27-ja | RSS1.0 | RSS2.0 | ATOM