ProFTP에서 각 계정으로는 되는데 anonymous로는 안되는 경우
이런 경우에는 어떻게 해야합니까?
이것저것 살펴봤는데 원인을 알 수가 없네요.
지금 상황은 이렇습니다.
1. 각 사용자 계정은 ftp접속이 되는데 anonymous 계정은 접속이 안된다.(이게 제일 이해가 안됩니다. 아예 안되면 안되는갑다하고 원인을 찾으면 되는데 일부 기능은 되니까 어디서 접근해야할지 모르겠어요)
2. proftpd.conf와 /etc/xinetd.d/proftpd파일은 RH8.0에서 백업해둔 파일과 정확히 일치한다. (참고로 현재 RH9쓰고 있구요 RH8.0에서는 정상적으로 ftp접속이 가능했습니다.)
/usr/local/proftpd/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.ServerName "Proftpd Server"
ServerType inetd
DefaultServer on# Port 21 is the standard FTP port.
Port 2121# 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 under which the server will run.
User nobody
Group nobody# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory># A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
<Limit LOGIN>
AllowAll
</Limit>
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# 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
<Limit WRITE>
DenyAll
</Limit>
<Directory uploads/*>
<Limit READ>
DenyAll
</Limit><Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
/var/log/messages에 다음 줄이 있네요
Apr 16 00:55:06 localhost proftpd[1579]: localhost.localdomain (61.99.194.73[61.99.194.73]) - FTP no transfer timeout, disconnected
혹시 ftp 유저의 홈디렉토리가 없는거 아닌가요? 현재 설정은 아무이상이
혹시 ftp 유저의 홈디렉토리가 없는거 아닌가요? 현재 설정은 아무이상이 없어 보입니다.
ls ~ftp
해서 ftp유저의 홈디렉토리가 제대로 잡혀있는지 확인해보시기 바랍니다.
그리고 message는 그냥 접속후 아무런 통신이 없어서 끊어진 것입니다. 이것만으로는 알기 어렵군요.
========================================
* The truth will set you free.
댓글 달기