>> Delete Reply from No. 42809 article
No. RE: proftp 설치후

등록 2002-02-19 14:43:00 By localhost     조회 1
이름 영스    

		: 저의 OS는 7.2 redhat 입니다. ftp server를 구축하려고 하는데 proftp가 없어서
:
: 김정균씨 홈페이지에서 proftpd-1.2.4-2kr.i686.rpm을 다운 받아서
:
: [root]# rpm -ivh --nodeps proftpd-1.2.4-2kr.i686.rpm
: preparing....   ###################################   [100%$]
: .
:
:
: 이렇게 설치를 했습니다.
:
: 그런데 설정 화일인 proftpd.conf를 찾을 수가 없군요.. 그리고 실행을 할려면 어떻게
:
: 해야하는지 잘 모르겠습니다.. 자세히 설명해 주세요.. ^^ 매번 감사합니다..
  제가 작성한 자료를 올려봅니다. 저는 소스로 설치하여 환경설정하였습니다.
 ■ FTP 서버(ProFTPd)
 ※ 첫째, FTP서버에 대한 소개
FTP서버는 클라이언트에서 파일을 받아갈 수 있도록 ProFTPd 나 WU-FTPd와 같은 서버 프로그램
을 설치한  서버 ※ 둘째, ProFTPd를 소스 구하기 및 설치하기
1. 소스 구하기
www.proftpd.net (저는 proftpd-1.2.4.tar.gz를 구했다.)
2. 소스 설치
# cp proftpd-1.2.4.tar.gz /usr/local/src/
# cd /usr/local/src
# pwd
/usr/local/src
# tar xvfz proftpd-1.2.4.tar.gz
# ls pro*
proftpd-1.2.4	proftpd-1.2.4.tar.gz
# cd proftpd-1.2.4
# pwd
/usr/local/src/proftp-1.2.4
# ./configure   (환경설정)
--prefix=/usr/local/proftpd
--enable-autoshadow 
# make (컴파일)
# make install (설치)
 ※ 셋째, ProFTPd 일반적인 환경 설정
# cat /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 Default Installation"
ServerType			standalone
DefaultServer			on
ServerAdmin			cymotor at cymotor.com # 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는 새로 생성된 디렉토리나 파일에 대해서 기본 퍼미션을 적용한다.
# 참고
# Umask 022 (디렉토리 : 755, 파일 : 644)
# Umask 070 (디렉토리 : 705, 파일 : 604)
# Umask 020 (디렉토리 : 757, 파일 : 646)
# Umask 002 (디렉토리 : 775, 파일 : 664)
# Umask 007 (디렉토리 : 770, 파일 : 660)
 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 지시자로 설정한 유저는 ProFTPd 데몬을 실행하는 사용자를 의미한다.
User				nobody
Group				nobody  # (nogroup 이 아님을 확인!!)
 # Normally, we want files to be overwriteable.
# 덮어쓰기 허용 여부를 결정한다.
<Directory /*>
  AllowOverwrite		on
</Directory>
 # A basic anonymous configuration, no upload directories.
<Anonymous /home/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
  RequireValidShell	off	# 이 지시자를 off로 지정해야 Anonymous를 사용할 수 있다.
  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
-------------------------------------------------------------
# /usr/sbin/adduser ftp
이상으로 각 계정 사용자와 Anonymous 사용자를 위한 환경으로 설정하여 보았다.
 ※ ProFTPd의 시작과 종료(소스 설치시)
1. ProFTPd 시작
# /usr/local/proftpd/sbin/proftpd
2. ProFTPd 종료
# pwd
/usr/local/proftpd/sbin
# killall proftpd
3. ProFTPd 현재 접속자 알아보기
# pwd
/usr/local/proftpd/bin
#./ftpwho
4. ProFTPd 현재 접속자 수 알아보기
# pwd
/usr/local/proftpd/bin
# ./ftpcount
 이상으로 ProFTPd에 대한 설명을 마칩니다.
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved