UNIX/proftpd の変更点


* UNIX/proftpd [#yf1d433f]

** Debian GNU/Linux 3.1 sarge [#g61dabe3]
 apt-get install proftpd
~

** source compile install [#y1e5f29e]
 ./configure \
   --prefix=/usr/local/proftpd \
   --sysconfdir=/etc/proftpd.d
 make
 make install
~

** 各種設定 [#g7819753]
-ログイン時の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
~