ProFTP에서 익명(Anonymous) 접속이 안됩니다.
검색으로 답을 모두 찾아 봤지만 해결방법이 없어 도움을 청합니다.
======================================================================
▶ 이런 에러메시지가 나와여
Connected to ***.***.***.***
220 FTP Server (ALZZA Default Installation) [********]
Name (2xx.1xx.xx.xx:********): anonymous
331 Anonymous login ok, send your complete e-mail address as password.
Password:
530 Login incorrect.
Login failed.
======================================================================
▶ 디렉 권한 설정
drwxr-xr-x 4 ftp ftp 4096 Jul 15 06:37 ftp/
drwxr-x--- 2 ftp ftp 4096 Nov 26 1999 incoming/
dr-xr-sr-x 2 ftp ftp 4096 Nov 26 1999 pub/
======================================================================
▶ 설정 파일의 내용
# 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.
ServerName "ALZZA Default Installation"
ServerType standalone
DefaultServer on
# Use Pam Module (required /etc/pam.d/ftp)
# please read /usr/doc/proftpd-1.2pre3/mod_pam.c
#
AuthPAMAuthoritative off
# Port 21 is the standard FTP port.
Port 4444
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User ftp
Group ftp
# To show all filenames including ``dot'' files
#LsDefaultOptions "-a"
#
# To allow root login
# be sure to take root out from /etc/ftpusers also :)
#
#RootLogin on
RootLogin off
# Support upload/download ratios
# please read /usr/doc/proftpd-1.2pre3/mod_ratio.c
#
# HostRatio foobar.net 100 10 5 100000
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
AllowStoreRestart on
AllowRetrieveRestart on
</Directory>
<Anonymous /home/ftp>
# anonymous login 후에 daemon이 ftp user의 권한으로 작동
User ftp
# anonymous login 후에 daemon이 ftp group의 권한으로 작동
Group ftp
# Client가 'anonymous' 대신 'ftp'로 login 가능하게 함.
UserAlias anonymous ftp
# root-dir 하위의 모든 디렉토리에서 쓰기를 거절함
# 읽기는 기본으로 허락되어 있기 때문에 <Limit>에서 설정을 안해도 됨
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming>
<Limit READ WRITE>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
======================================================================
▶ 거부 유저 리스트
[$] vi ftpusers
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody