CentOS5 proftpd RPMよりインストール
|
/etc/proftpd.conf 設定内容 ※サーバ証明書を発行していない為、ssl関連の設定は行っていない しかもVMware上で稼動する為セキュリティも特に気にしていない。 以下の設定は「設定参考資料」に掲載されていた内容の受け売り。 #コメントアウト(スタンドアロンモードで起動しない) #ServerType standalone #コメント解除(xinetd経由で起動する) ServerType inetd #ルートディレクトリを~/public_htmlとする #※ただしwheelグループ所属ユーザは除く #DefaultRoot ~ !adm DefaultRoot ~/public_html !wheel #最終行へ追加(アクセスログを記録する) ExtendedLog /var/log/proftpd/access.log WRITE,READ default #最終行へ追加(認証ログを記録する) ExtendedLog /var/log/proftpd/auth.log AUTH auth #最終行へ追加(ファイルのタイムスタンプを日本時間にする) TimesGMT off #最終行へ追加(サーバー名を指定)※ #MasqueradeAddress centossrvforftp.dip.jp #最終行へ追加(PASVモード用ポートとして1024以上の任意のポートを指定) PassivePorts 60000 60030 /etc/xinetd.d/xproftpd 設定内容 # default: off
# $Id: proftpd-xinetd,v 1.2 2002/06/10 15:35:47 dude Exp $
# description: The ProFTPD FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.proftpd
#変更(ログインに約30秒かかる対処)
# log_on_success += DURATION USERID
log_on_success += HOST PID
#変更(ログインに約30秒かかる対処)
# log_on_failure += USERID
log_on_failure += HOST
nice = 10
#proftpdのxinetd経由起動の有効化
# disable = yes
disable = no
}
xinetd再起動 # /etc/rc.d/init.d/xinetd restart xproftpd自動起動設定 # chkconfig xproftpd on xproftpd自動起動設定確認
# chkconfig --list xproftpd |




