proftp 실행 관련...
작성자 정보
- 윤성환 작성
- 작성일
컨텐츠 정보
- 1,600 조회
- 2 댓글
- 0 추천
-
목록
본문
최근에 리눅스를 시작한 초보입니다.
페도라 코어 5 버젼이고요
ftp서버를 구축할 요량으로 기본으로 깔려있는 vsftp 를 지우고
proftp를 깔았습니다.( proftpd-1.2.10-1.fc1.i386.rpm )
책에서는 1.2.7-1 rpm버젼으로 설명이 되어있고
rpm도 파일이 3개로 나누어져있다고 나오는데
proftpd-1.2.7-1.i386.rpm (본체패키지)
proftpd-inetd-1.2.7-1.i386.rpm (inetd방식으로 운영하기 위한 패키지)
proftpd-standalone-1.2.7-1.i386.rpm (스탠드얼론 방식으로 운영하기 위한 패키지)
제가 www.proftp.org 사이트에 가보니까 스탠드얼론 패키지는 없고
아무리 봐도 본체패키지와 inetd 패키지 밖에 없더군요
그래서 그냥 버젼업되면서 본체하고 스탠드얼론패키지가 합쳐졌겠거니 하고
본체 proftpd-1.2.10-1.fc1.i386.rpm 만 깔았습니다.
그리고 책에 나와있는대로 /etc/proftpd.conf 파일 편집해서 저장하고
/etc/rc.d/init.d/proftpd start 했는데 [실패] 라고 뜹니다. restart, stop도 마찬가지이구요.
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 Default Installation"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# 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.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/ftp>
User ftp
Group ftp
RequireValidShell off
# 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 LOGIN>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
<Directory /home/ftp/public>
Umask 070
AllowStoreRestart on
AllowRetrieveRestart on
<Limit READ>
AllowAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
소스로 설치하라는 말은 하지 말아주세요 ㅜ ㅜ
관련자료
-
이전
-
다음
배준태님의 댓글
- 배준태
- 작성일
tail -f /var/log/messages 해서 메시지실시간로그로 띄우구요
다른콘솔하나 더띄운다음에 ftp를 재시작해보시기바랍니다
그럼 답이 나올겁니다
안재성님의 댓글
- 안재성
- 작성일
messages 참조하시어 찾아내기 하시는것부터 먼저 해보시고.
페5에 쓰신 rpm 말고 페5용 전용 rpm을 한번써봄심도 좋을듯합니다.
혹시 21번포트를 딴 ftp가 쓰고있을수도 있고.
rpm 설치시 ftp가 실행되고 있었는지도 보세욤..
APM 설치시에도 APM 중에 한 둘 대몬이 띄워져 있는상태에서 재설치하면
안되는경우가 많습니다.
가령 센드메일에서 pop3, imap, sendmail-cf 등의 rpm을 설치할때는
sendmail 본체를 즉 대몬을 죽이고 설치해야 완전 정상적으로 설치되더군요.
안그러니가 설치가되긴한데.. 특정설정파일에서 정상적인 설정파일보다 공백이
2줄 더 생기던데 그 2줄 지우니까 잘 실행되었습니다.
그럼 꼭 성공하시길...