proftpdの設定 この HTMLファイルは自作 自動html作成スプリクト生成しています
UU誌 1999 11月より4ヵ月連載あり
/usr/local/etc/rc.d/proftpd.sh
/usr/local/etc/proftpd.conf
YK# sh /usr/local/etc/rc.d/proftpd.sh start で文句をいわれない 事
===============================================================================
compaq note PC にproftpdをインストールした
gftp で 192.168.0.15 ポート21 note n1234 でアクセスしたら
noteの home /usr/home/note/ にアクセスした
ktermで
YK# ftp 192.168.0.15 としたら
"/usr/home/note" is current directory. にアクセスする
===============================================================================
YK# pkg_add ftp://192.168.0.9/Allpkg/ja-xv-3.10a_2.tgz
proftpd を使って うえのようにパッケージをインストールするには
ftpサーバーに anonymos を許可してftp ユーザ を作り ftpユーザーのhome ディレクトリに
Allpkg/ja-xv-3.10a_2.tgzを おかねばならない 今回の実験では
/ftp をhomeにし /ftp/Allpkg/ja-xv-3.10a_2.tgzをおいた。
これにより 上のように インストール出来る
===============================================================================
anonymos の許可
### A basic anonymous configuration, no upload directories.
## 重要 # を外す
User ftp
Group ftp
### We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
### Limit the maximum number of anonymous logins
MaxClients 10
### It is wise when making an 'ftp' user that you either block its
### ability to login either via /etc/login.access or my giving it
### an invalid shell.
### Uncomment this if the 'ftp' user you made has an invalid shell
# RequireValidShell off
### We want 'welcome.msg' displayed at login, and '.message' displayed
### in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
### Limit WRITE everywhere in the anonymous chroot
#
# DenyAll
#
## 重要 # を外す
===============================================================================
===============================================================================
===============================================================
/etc/pam.conf に追加
ftpd auth required pam_unix.so try_first_pass
ftpd account required pam_unix.so try_first_pass
ftpd session required pam_permit.so
================================================================
/etc/ineted.conf ftp に# を付ける
# To enable a service, remove the '#' at the beginning of the line.
#
#ftp stream tcp nowait root /usr/libexec/lukemftpd ftpd -l -r
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
#ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l
telnet stream tcp nowait root /usr/libexec/telnetd telnetd
#telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd
shell stream tcp nowait root /usr/libexec/rshd rshd
#shell stream tcp6 nowait root /usr/libexec/rshd rshd
login stream tcp nowait root /usr/libexec/rlogind rlogind
#login stream tcp6 nowait root /usr/libexec/rlogind rlogind
#finger stream tcp nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#finger stream tcp6 nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#exec stream tcp nowait root /usr/libexec/rexecd rexecd
#uucpd stream tcp nowait root /usr/libexec/uucpd uucpd
#nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd
#
===============================================================================