.
Counter: 9737, today: 1, yesterday: 1

anonymousFTPサーバの構築

AnonymousFTPを許可する場合、書き込み権限を与えない設定をするのが一般的です。また、ログイン時にメッセージを表示させたい場合、/var/ftp/welcome.msg ファイルに記述しましょう。

ブラウザからでも ftp://IP ADDRESS/ でアクセスし、置いてあるファイルをダウンロードすることができます。

anonymousログインでは、通常IDをanonymous とし、パスワードにメールアドレスを入力します。下記の設定では、IDにftpとしてもログインできます。

# vi /etc/proftpd.conf (追加)
<Anonymous ~ftp>
 User                 ftpanonymousFTPサーバの構築
 Group                ftp

 # We want clients to be able to login with 'anonymous' as well as 'ftp'
 UserAlias            anonymous ftp

 # Limit the maximum number of anonymous logins
 MaxClients           10

 # We want 'welcome.msg' displayed at login, and '.message' displayed
 # in each newly chdired directory.
 DisplayLogin         welcome.msg
 DisplayFirstChdir    .message

 # Limit WRITE everywhere in the anonymous chroot
 <Limit WRITE>
   DenyAll
 </Limit>
</Anonymous>

# vi /var/ftp/welcome.msg
Welcome to my anonymousFTP Server.
==================================

This ftp server is an unsupported service of Linuxexpert.ne.jp.
Complaints and questions should be sent to .

Note:
 - This Server is limited to 1 connection per a host at the same time.
 - All transfers are logged.
 
   FAQ(in japanese):-)  http://www.ftp.ne.jp/pr/faq.html

(ログインすると)

$ ncftp -u ftp localhost

NcFTP 3.1.5 (Oct 13, 2002) by Mike Gleason (ncftp@ncftp.com).

Copyright (c) 1992-2002 by Mike Gleason.
All rights reserved.

Connecting to 127.0.0.1...
ProFTPD 1.2.9 Server (ProFTPD) [localhost.localdomain]
Logging in...

 Welcome to my anonymousFTP Server.
 ==================================

 This ftp server is an unsupported service of Linuxexpert.ne.jp.
 Complaints and questions should be sent to .

 Note:
  - This Server is limited to 1 connection per a host at the same time.
  - All transfers are logged.

     FAQ(in japanese):-)  http://www.ftp.ne.jp/pr/faq.html

Anonymous access granted, restrictions apply.
Logged in to localhost.
ncftp / > bye


リロード   差分 ソース ファイル添付 添付ファイル一覧   Wikiトップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
トラックバック [ トラックバック(0) ]
トラックバック URL: http://linuxexpert.ne.jp/modules/pukiwiki/tb/53

Expert Menu
最新記事
なぜここへ
Yahoo Japanから
検索結果から
友人に聞いて
前からURLを知っていた
他サイトからリンク
最新バージョンの確認

Linuxexpert is one of the service presented by InfomationSquare. / OmakaseBlog Login  |  Register Now!