wu-ftpd (FTPサーバ) を動かしてみる
Modified: 16 February 2002
wu-ftpの小技は、「wu-ftp(FTPサーバ)の小技」を参照してください。
Webminから、「Services」を選択し、以下の「Extended Internet Services」を開きます。
「Extended Internet Services」を開くと、「Service Name」の欄に「ftp」の項目があるので、そこをクリックします。
開いた画面の「Service network options」の「Service enabled?」を、「Yes」にして、「Save」ボタンを押します。
以下のように、右端の「Enabled?」欄が「Yes」になっているのを確認します。
最後に、「Apply Changes」ボタンを押して確定させます。
参考(1): "/etc/ftpaccess"
# This file controls the behavior of the wu-ftpd
# ftp server.
#
# If you're looking for a graphical frontend to
# editing it, try kwuftpd from the kdeadmin
# package.
# Don't allow system accounts to log in over ftp
deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid ftp
allow-gid ftp
# The ftpchroot group doesn't exist by default, this
# entry is just supplied as an example.
# To chroot a user, modify the line below or create
# the ftpchroot group and add the user to it.
#
# You will need to setup the required applications
# and libraries in the root directory (set using
# guest-root).
#
# Look at the anonftp package for the files you'll need.
guestgroup ftpchroot
# User classes...
class all real *
# Set this to your email address
email root@localhost
# Allow 5 mistyped passwords
loginfails 5
# Notify the users of README files at login and when
# changing to a different directory
readme README* login
readme README* cwd=*
# Messages displayed to the user
message /welcome.msg login
message .message cwd=*
# Allow on-the-fly compression and tarring
compress yes all
tar yes all
# Prevent anonymous users (and partially guest users)
# from executing dangerous commands
chmod no guest,anonymous
delete no anonymous
overwrite no anonymous
rename no anonymous
# Turn on logging to /var/log/xferlog
log transfers anonymous,guest,real inbound,outbound
# If /etc/shutmsg exists, don't allow logins
# see ftpshut man page
shutdown /etc/shutmsg
# Ask users to use their email address as anonymous
# password
passwd-check rfc822 enforce
参考(2): "/etc/xinetd.d/wu-ftpd"
# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
log_on_success += DURATION USERID
log_on_failure += USERID
socket_type = stream
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
wait = no
nice = 10
}
ftpサーバーの設定は、Webminの「Services」から以下の「FTP Server」をクリックして行います。
Anonymousのログインを禁止する方法
Webminの「Services」から「FTP Server」を開いて、上記の「Users and Classes」を開きます。
「Users and Classes」では、「User classes」の「User types」で、「Unix」だけにチェックします。