- 2010-04-14 (水) 2:12
http://www.proftpd.org/
./configure \
--enable-openssl \
make
make install
cp ./contrib/dist/rpm/proftpd.init.d /etc/rc.d/init.d/proftpd
chmod 755 /etc/rc.d/init.d/proftpd
chkconfig --add proftpd
------------------------------------------------------------
時間がずれる
------------------------------------------------------------
vi /etc/rc.d/init.d/proftpd
以下を記述しておくと直る。
export TZ=JST-9
------------------------------------------------------------
proftpd.confの設定
------------------------------------------------------------
rpmでインストールしたものは
/etc/proftpd/proftpd.conf に設置される。
/etc/ftpusers
このファイルはログインさせないアカウントを記述してある
「#」でコメントすれば、ログイン可能になる。
手動でコンパイルしたものは
/usr/local/etc/proftpd.conf に設置される。
--------------------------------------------------
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
#/etc/init.d/proftpd restart
ServerName "ProFTPD"
ServerType standalone
DefaultServer on
RootLogin on
ListOptions "-a"
UseReverseDNS off
IdentLookups off
TimeoutIdle 1800
TimeoutStalled 1800
TimeoutNoTransfer 1800
TimesGMT off
ExtendedLog /var/log/proftpd.log
中略
#コメントしないとFTPからパーミッション変更できません
#<Limit SITE_CHMOD>
# DenyAll
#<//Limit>
以下略
--------------------------------------------------
ログイン先の指定、制限
--------------------------------------------------
testというユーザーに制限を掛ける場合。
ユーザーディレクトリ無しでアカウントを作成。
useradd -M test
test以外はユーザーディレクトリより上には行けない
DefaultRoot ~ !test
testというユーザーは「/home/test/public_html/test」にログインし
それより上の階層には行けない。
DefaultRoot /home/test/public_html/test test
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://acoustype.com/proftpd%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/trackback
- Listed below are links to weblogs that reference
- ProFTPDのインストール from acoustype.com