UNIX/proftpd

UNIX/proftpd

Debian GNU/Linux 3.1 sarge

apt-get install proftpd


source compile install

./configure \
  --prefix=/usr/local/proftpd \
  --sysconfdir=/etc/proftpd.d
make
make install


各種設定

  • ログイン時のidentプロトコル(RFC1413)抑制方法
    /etc/proftpd/proftpd.conf
    〜〜〜
    IdentLookups  off
    〜〜〜

  • 接続時のサーバ情報表示抑制方法
    ※「ProFTPD 1.2.8 Server (コメント) [XXX.XXX.XXX.XXX]」等
    /etc/proftpd/proftpd.conf
    〜〜〜
    ServerIdent off
    〜〜〜

  • ログインユーザーを制限する方法
    <Limit Login>
      Order allow,deny
      AllowUser user1,user2,user3
      Deny all
    </Limit>

  • 特定ディレクトリにアップロードした場合にumaskを変更する方法
    <Directory /var/webapps/*>
      Umask 002
    </Directory>

  • シンボリックリンクの扱い
    本来のディレクトリを見せない
    ShowSymlinks off
    ---
    /home/user/symdirname
    本来のディレクトリを見せる
    ShowSymlinks on
    /var/truedirname

  • chroot設定
    DefaultRoot ~

  • ログの設定
    LogFormat allinfo "%t :  %u (%a [%h]) : [%s], %T, %m (%f)"
    LogFormat write "%t : %u : %F (%a)"
    LogFormat read "%t : %u : %F (%a)"
    LogFormat auth "%t : %u (%a [%h])"
    ExtendedLog /var/log/proftpd/all.log ALL allinfo
    ExtendedLog /var/log/proftpd/write.log WRITE write
    ExtendedLog /var/log/proftpd/read.log  READ read
    ExtendedLog /var/log/proftpd/auth.log AUTH auth

2008-08-05 (火) 17:13:58 (5744d)

リロード   新規 編集 凍結 差分 添付 複製 名前変更   ホーム 一覧 単語検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS