########################################################################
< Proftpd 셋팅>
1. 파일 다운로드
#http://www.proftpd.org 싸이트에서 최신 버젼으로 다운로드 proftpd-버젼.tar.gz
ex) wget ftp://xxx.xxx.xxx.xxx/(해당 다운받을 proftpd-버젼.tar.gz 경로)
2. 압축 풀기
# tar xvzf proftpd-버젼.tar.gz
3. 디렉토리 이동
#cd proftpd-버젼
#./configure –prefix=/usr/local/proftpd –enable-autoshadow –enable-shadow
#make
#make install
4. conf파일 설정
#vi /usr/local/proftpd/etc/proftpd.conf
ServerName "linuxer_hun ftp Server"
ServerType standalone
#동시에 여러명이 접속 가능 설정
DefaultServer on
#wheel그룹 이외의 자신의 디렉토리만 엑세스 가능
DefaultRoot ~ !wheel
#Root로그인 안됨
RootLogin off
# Port 1026로 변경
# data포트도 한상변경해줌 1025
Port 1026
#파일 업로드시 파일 퍼미션 설정
Umask 022
#동시에 서비스 가능한 ftp접속자수
MaxInstances 30
# nobody로 ftp실행됨
User nobody
Group nobody
#유효한 쉘일 경우 ftp접속가능
RequireValidShell on
#다운로드시 속도 제한
#RateReadBPS 512
#업로드시 속도 제한
#RateWriteBPS 512
#디렉토리 설정
<Directory />
AllowOverwrite on
AllowStoreRestart on
AllowRetrieveRestart on
</Directory>
<Anonymous ~linuxerhun>
User linuxerhun
Group linuxerhun
#익명 로그인 제한
#UserAlias anonymous linuxerhun
MaxClients 10
#login시 메세지 내용
DisplayLogin welcome.msg
#디렉토리 이동시 메세지 내용
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
<Directory /home/linuxerhun/download/*>
<Limit READ >
AllowAll
</Limit>
<Limit STOR WRITE DELE RMD MKD>
DenyAll
</Limit>
</Directory>
<Directory /home/linuxerhun/upload/*>
AllowOverwrite on
AllowStoreRestart on
AllowRetrieveRestart on
<Limit READ RETR DELE RMD>
DenyAll
</Limit>
<Limit WRITE MKD STOR>
AllowAll
</Limit >
</Directory>
</Anonymous>
5. 메시지 내용
#cat welcome.msg
************************************************
Welcome to %V
admin E-mail : %E
************************************************
접속자 : %U
로그인 시간 : %T
접속 IP : %R
접속자 수 : 현재 (%N) / 최대 (%M)
외부 사용자의 접근을 제한합니다.
호스트 당 1개의 접속만 허용합니다.
웹호스팅 디렉토리는 public_html/입니다.
현재 남은 용량은 %f입니다.
6. ftp로그 파일 확인
#tail –f /var/log/xferlog
Thu Jul 21 04:12:28 2005 0 ns.xxx.com 384514 /home/linuxerhun/download/test.tar.gz b _ o a -wget@ ftp 1 * c
#######################################################################################
이상입니다. 도움이 되셨나 모르겠습니다.
다른 궁금하신 사항은 쪽지로 물어보세요.
그럼 좋은 하루 되세요~
'LINUX' 카테고리의 다른 글
| mysql 계정 추가 (0) | 2009/03/26 |
|---|---|
| vsftp (0) | 2009/03/26 |
| proftpd 설치법 (0) | 2009/03/26 |
| 페도라 설정 (0) | 2009/03/25 |
