| HOME | INDEX |

   
 

ProFTPDインストール

   
     

ProFTPDのインストール

   



# apt-get install proftpd

 

環境設定

   


/etc/proftpd.conf を以下のように編集する (追加変更箇所のみ)。hoge グループ以外はホームディレクトリより上に移動できないようにする。

# vi /etc/proftpd.conf

#ServerType standalone
ServerType inetd

#Use localtime
TimesGMT FALSE

ExtendedLog /var/log/proftpd all
SyslogFacility LOCAL6
DefaultRoot ~ !hoge

#Use Passive
PassivePorts 4000 4029

xinetd.dの設定

   


# vi /etc/xinetd.conf

service ftp
{
 disable = no
 socket_type = stream
 wait = no
 user = root
 server = /usr/sbin/proftpd
 log_on_success += DURATION USERID
 log_on_failure += USERID
 nice = 10
}

 xinetdを再起動する。

# /etc/init.d/xinetd restart

 
 
   
Copyright © 2002-2004 by mallet, All rights reserved