proftpd を CentOS 5.6 x86_64 へインストールする。
# wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3e.tar.gz
# tar zxvf proftpd-1.3.3e.tar.gz
# cd proftpd-1.3.3e
# ./configure --sysconfdir=/etc
# make
# make install
# vi /etc/proftpd.conf
-----
ServerType standalone
↓
ServerType inetd
#DefaultRoot ~
↓
DefaultRoot ~/public_html !wheel
以下を追加
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
TimesGMT off
-----
# vi /etc/xinetd.d/proftpd
-----
# for ProFTPd configuration
service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/in.proftpd
# log_on_success += DURATION USERID
log_on_success += HOST PID
# log_on_failure += USERID
log_on_failure += HOST
env = TZ=JST-9
disable = no
cps = 3 60
}
-----
# /etc/rc.d/init.d/xinetd restart
0 件のコメント:
コメントを投稿