« TubeTV 0.9.2 | メイン | SafariSafe 1.1 »
2007年8月 9日
FTPのバージョンを表示させない方法
Solaris9 のFTPサーバにアクセスした際に、FTPのバージョンが下記のように表示されてしまう。
%ftp test
Connected to test.
220 bow FTP server (Version wu-2.6.2+Sun) ready.
^^^^^^^^^^^^^^^^^^^^^^
FTPのバージョンが表示されてしまう原因は、/etc/inetd.conf と /etc/ftpd/ftpaccess の設定が影響している。
この表示をさせないようにするには、/etc/inetd.conf のftp の部分を編集することで実現できる。
1)-a オプションを指定することによって、ftpaccess ファイルを有効にする。
-----------------------------------------------------------------------------
# vi /etc/inetd.conf
::
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -a
-----------------------------------------------------------------------------
man in.ftpd より抜粋
==========================================
-a Enable use of the ftpaccess(4) file.
==========================================
-a の設定がされていない場合は設定し、設定後は、inetd プロセスに対してHUP シグナルを送信。
----------------------
# pkill -HUP inetd
----------------------
2) /etc/ftpd/ftpaccess ファイルを確認。
greeting の部分が "brief" になっていることを確認。
"brief" のみとなっていれば、ホスト名と "FTP Server ready" のみ表示させる。
inetd.conf のftp のエントリに -a オプションがない場合、ftpaccess ファイルが有効にならないため、"full" の状態となるので、ftp のバージョンも出力されてしまう。
# vi /etc/ftdp/ftpaccess
::
greeting brief
man ftpaccess より抜粋
==================================================================
greeting text message
greeting brief shows the hostname. greeting terse simply says
"FTP Server ready." Although full is the default,
brief is suggested.
==================================================================
投稿者 AJ : 2007年8月 9日 10:24
トラックバック
このエントリーのトラックバックURL:
http://www.factory-aj.com/cgi/mtctrl/mt-tb.cgi/254