질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

proftp 접속이 안됩니다. 조언바랍니다.

작성자 정보

  • 궁금이 작성
  • 작성일

컨텐츠 정보

본문

저는 standalone 방식인거 같구요..
첫째, /etc/ftpusers 파일에는 사용자아이디(youdw)는 없었습니다.

둘째, /etc/proftpd.conf 파일을 보면 아래와 같구요
1 # This is the ProFTPD configuration file
2 # $Id: proftpd.conf v 1.1 2004/02/26 17:54:30 thias Exp $
3
4 ServerName "youdw"
5 ServerIdent on "FTP Server ready."
6 ServerAdmin youdw@hotmail.com
7 ServerType standalone
8 #ServerType inetd
9 DefaultServer on
10 AccessGrantMsg "User %u logged in."
11 #DisplayConnect /etc/ftpissue
12 #DisplayLogin /etc/ftpmotd
13 #DisplayGoAway /etc/ftpgoaway
14 DeferWelcome off
15
16 # Use this to excude users from the chroot
17 DefaultRoot ~!adm
18
19 # Use pam to authenticate (default) and be authoritative
20 AuthPAMConfig proftpd
21 AuthOrder mod_auth_pam.c* mod_auth_unix.c
22
23 # Do not perform ident nor DNS lookups (hangs when the port is filtered)
24 IdentLookups off
25 UseReverseDNS off
26
27 # Port 21 is the standard FTP port.
28 Port 21
29
30 # Umask 022 is a good standard umask to prevent new dirs and files
31 # from being group and world writable.
32 Umask 022
33
34 # Default to show dot files in directory listings
35 ListOptions "-a"
36
37 # See Configuration.html for these (here are the default values)
38 #;MultilineRFC2228 off
39 RootLogin on
40 #LoginPasswordPrompt on
41 #MaxLoginAttempts 3
42 #MaxClientsPerHost none
43 #AllowForeignAddress off # For FXP
44
45 # Allow to resume not only the downloads but the uploads too
46 AllowRetrieveRestart on
47 AllowStoreRestart on
48
49 # To prevent DoS attacks set the maximum number of child processes
50 # to 30. If you need to allow more than 30 concurrent connections
51 # at once simply increase this value. Note that this ONLY works
52 # in standalone mode in inetd mode you should use an inetd server
53 # that allows you to limit maximum number of processes per service
54 # (such as xinetd)
55 MaxInstances 20
56
57 # Set the user and group that the server normally runs at.
58 User nobody
59 Group nobody
60
61 # Disable sendfile by default since it breaks displaying the download speeds in
62 # ftptop and ftpwho
63 UseSendfile no
64
65 # This is where we want to put the pid file
66 ScoreboardFile /var/run/proftpd.score
67
68 # Normally we want users to do a few things.
69 <Global>
70 AllowOverwrite yes
71 <Limit ALL SITE_CHMOD>
72 AllowAll
73 </Limit>
74 </Global>
75
76 # Define the log formats
77 LogFormat default "%h %l %u %t "%r" %s %b"
78 LogFormat auth "%v [%P] %h %t "%r" %s"
79
80 # TLS
81 # Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
82 #TLSEngine on
83 #TLSRequired on
84 #TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem
85 #TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem
86 #TLSCipherSuite ALL:!ADH:!DES
87 #TLSOptions NoCertRequest
88 #TLSVerifyClient off
89 ##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
90 #TLSLog /var/log/proftpd/tls.log
91
92 # SQL authentication Dynamic Shared Object (DSO) loading
93 # See README.DSO and howto/DSO.html for more details.
94 #<IfModule mod_dso.c>
95 # LoadModule mod_sql.c
96 # LoadModule mod_sql_mysql.c
97 # LoadModule mod_sql_postgres.c
98 #</IfModule>
99
100 # A basic anonymous configuration with an upload directory.
101 <Anonymous ~ftp>
102 User ftp
103 Group ftp
104 AccessGrantMsg "Anonymous login ok restrictions apply."
105
106 # We want clients to be able to login with "anonymous" as well as "ftp"
107 UserAlias anonymous ftp
108
109 # Limit the maximum number of anonymous logins
110 MaxClients 10 "Sorry max %m users -- try again later"
111
112 # Put the user into /pub right after login
113 #DefaultChdir /pub
114
115 # We want 'welcome.msg' displayed at login '.message' displayed in
116 # each newly chdired directory and tell users to read README* files.
117 DisplayLogin /welcome.msg
118 DisplayFirstChdir .message
119 DisplayReadme README*
120
121 # Some more cosmetic and not vital stuff
122 DirFakeUser on ftp
123 DirFakeGroup on ftp
124
125 # Limit WRITE everywhere in the anonymous chroot
126 <Limit WRITE SITE_CHMOD>
127 DenyAll
128 </Limit>
129
130 # An upload directory that allows storing files but not retrieving
131 # or creating directories.
132 <Directory uploads/*>
133 AllowOverwrite no
134 <Limit READ>
134 <Limit READ>
135 DenyAll
136 </Limit>
137
138 <Limit STOR>
139 AllowAll
140 </Limit>
141 </Directory>
142
143 # Don't write anonymous accesses to the system wtmp file (good idea!)
144 WtmpLog off
145
146 # Logging for the anonymous transfers
147 ExtendedLog /var/log/proftpd/access.log WRITE READ default
148 ExtendedLog /var/log/proftpd/auth.log AUTH auth
149
150 </Anonymous>
151

셋째 프로세스인가? 그거는 아래와 ... 맞는지 잘모르겠습니다.
다른 거 검색해보니깐.. root아래에 한줄 더있던데..?
[root@youdw ~]# ps -ef | grep proftp
root 9966 9613 0 14:35 pts/0 00:00:00 grep proftp

넷째 chkconfig해보면 아래와...
[root@youdw ~]# chkconfig --list | grep proftpd
proftpd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제
xproftpd: 활성

다섯째 /etc/services 에서 보면 해당 포트도 열려있는거 아닌가요?
ftp-data 20/tcp
ftp-data 20/udp
# 21 is registered to ftp but also used by fsp
ftp 21/tcp
ftp 21/udp fsp fspd

여섯째 방화벽 설정도 제대로 된거 같고...ㅡㅡ;;
[root@youdw ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


일곱째
[root@youdw var]# service proftpd start
proftpd 를 시작합니다.: [ OK ]
[root@youdw var]# ftp localhost
Connected to youdw.
421 Service not available remote server has closed connection
ftp>


도무지 어디에서 잘못되었는지 모르겠습니다..
검색은 계속해보고 있지만...ㅡ.ㅡ;

여러 질문에 답해주셔서 정말 감사합니다..

방학이 끝나기전에 마칠수 있을랑가 모르겠네요..

관련자료

댓글 1

노영석님의 댓글

  • 노영석
  • 작성일
글로벌 설정란에 다음을 추가해 보시죠..

RequireValidShell off

공지사항


뉴스광장


  • 현재 회원수 :  60,076 명
  • 현재 강좌수 :  36,001 개
  • 현재 접속자 :  502 명