PHP

PROFTPD 설치및 설정

Bucket List 2005. 12. 24. 10:35
PROFTPD

http://www.proftpd.org <=- 공식홈페이지
http://proftpd.oops.org <=- 김정균님의 PROFTPD KOREA USER GROUP

FTP서버는 반드시 최신 버전 받아서 설치하세요. RC버전도 테스트후 이상없이 실행되면 가급적 설치하세요.

# ./configure \
--prefix=/usr/local/proftpd \
--enable-shadow
# make
# make install
-> 여기까시 설치 완료.

# vi /etc/inetd.conf
# ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd
telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd
--> FTP 부분을 주석처리.

# ps -ef | grep inetd
root xxx 1 0 10월 22 ? 0:00 /usr/sbin/inetd -s
# kill -HUP xxx
--> INETD를 재시작.

# vi /usr/local/proftpd/conf/proftpd.conf에서
....
User nobody
Group nobody
AllowstoreRestart on
RequireValidShell off
DefaultRoot ~
ServerIdent on "Welcome to MYSERVER"
DisplayConnect /etc/proftp.connect.msg
DisplayLogin /etc/proftp.login.msg
MaxClients 50 "Sorry, the maximum number(%m) of allowed users are already connected"
MaxClientsPerHost 5 "Sorry, you may not connect more than 5 times."
HideUser root
HideGroup root
AuthPAM Off
# 익명 계정 설정. ftp라는 유저와 ftp라는 그룹이 솔라리스에 등록되어 있어야 하며, ftp유저의 홈 디렉토리는 유효해야 한다.
<Anonymous ~ftp>
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

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
--> 각각의 옵션에 대한 설명은 proftpd.oops.org 에 가셔서 확인하세요.

# /usr/local/proftpd/sbin/proftpd
--> PROFTPD 실행

root@maid ~ # ps -ef | grep proftpd
nobody 2402 1 0 15:42:10 ? 0:00 /usr/local/proftpd/sbin/proftpd
root 2482 2476 0 23:20:43 pts/3 0:00 grep proftpd
root@maid ~ # kill 2402
--> proftpd의 실행을 끄려면 ps -ef | grep proftpd 후에 부모 프로세스가 1번인 proftpd 프로세스를 죽인다.

'PHP' 카테고리의 다른 글

리눅스에서 apm 설치 가이드  (0) 2005.12.24
솔라리스 기초 (설치과정)  (0) 2005.12.24
DHCP 설정하기  (0) 2005.12.24
dns 추가하기  (0) 2005.12.24
IP, subnet mask, gateway 지정  (0) 2005.12.24