본문 바로가기

기타/디지털

ProFTPD RPM 설치 및 설정

Installation

1. RPM : proftpd-1.2.10-8.0.rh9.dag.i386.rpm

DAG packages for Red Hat Linux 9 i386
md5 : a7853d016a1e313b21a16eb7159d4d77

2. rpm -Kv proftpd-***.rpm
3. rpm -ivh proftpd-***.rpm
4. 파일이 설치된 위치 확인하기 : rpm -ql proftpd
5. vi /etc/proftpd.conf

ServerAdmin root@localhost -> mail_addr
ServerType standalone -> inetd
MaxInstances 20 -> 5

6. 왜 standalone이 아닌 inetd 모드인가?

대부분 FTP 서버 운용을 위해서가 아니라 대부분의 경우 웹작업을 위해 설치

rm -rf /etc/rc.d/init.d/proftpd
vi /etc/xinet.d/xproftpd
disable  = yes -> no

7. /etc/rc.d/init.d/xinetd restart

Configuration

1. 일반 사용자의 홈디렉토리 상위 경로 제한하기

DefaultRoot     ~/public_html
TimeoutIdle     0
TimeoutNoTransfer       0

2. 연결 허용 시간 제한

TimeoutStalled                0
0 : 연결 허용 시간 제한 설정 안함

3. ftp 서비스를 거부하는 유저 리스트

/etc/ftpusers

Command (if source installation)

1. proftpd start : 서버 시작
2. proftpd stop : 서버 종료
3. proftpd restart : 서버 재시작
4. killall proftpd : proftpd 서버의 모든 프로세스 죽이기
5. proftpd reread : 설정파일 다시 읽기
6. ftpcount : 현재 접속자수 출력
7. ftpwho : 현재 접속한 사용자와 파일의 다운로드 현황 보여주기